fbxsdk/core/fbxqueryevent.h Source File

fbxqueryevent.h
Go to the documentation of this file.
1 /****************************************************************************************
2 
3  Copyright (C) 2015 Autodesk, Inc.
4  All rights reserved.
5 
6  Use of this software is subject to the terms of the Autodesk license agreement
7  provided at the time of installation or download, or which otherwise accompanies
8  this software in either electronic or hard copy form.
9 
10 ****************************************************************************************/
11 
13 #ifndef _FBXSDK_CORE_QUERY_EVENT_H_
14 #define _FBXSDK_CORE_QUERY_EVENT_H_
15 
16 #include <fbxsdk/fbxsdk_def.h>
17 
18 #include <fbxsdk/core/fbxevent.h>
19 
20 #include <fbxsdk/fbxsdk_nsbegin.h>
21 
27 template <typename QueryT> class FbxQueryEvent : public FbxEvent<FbxQueryEvent<QueryT> >
28 {
29 public:
37  explicit FbxQueryEvent(QueryT* pData):mData(pData){}
38 
43  QueryT& GetData()const { return *mData; }
45 
46 private:
47  mutable QueryT* mData;
48 
49 private:
50  virtual const char* GetEventName() const { FBX_ASSERT(false); return ""; }
51  static const char* FbxEventName() { FBX_ASSERT(false); return ""; }
52  friend class FbxEvent< FbxQueryEvent<QueryT> >;
53 };
54 
55 #include <fbxsdk/fbxsdk_nsend.h>
56 
57 #endif /* _FBXSDK_CORE_QUERY_EVENT_H_ */
FBX SDK environment definition.
A query event is something that is emitted by an entity, with the goal of being filled by someone tha...
Definition: fbxqueryevent.h:27
FbxQueryEvent(QueryT *pData)
Constructor.
Definition: fbxqueryevent.h:37
QueryT & GetData() const
Accessor to a mutable reference to the data.
Definition: fbxqueryevent.h:43
FBX event class, derived from FbxEventBase, and it contains a type ID for event.
Definition: fbxevent.h:134