kfbxqueryevent.h

Go to the documentation of this file.
00001 /****************************************************************************************
00002 
00003    Copyright (C) 2010 Autodesk, Inc.
00004    All rights reserved.
00005 
00006    Use of this software is subject to the terms of the Autodesk license agreement
00007    provided at the time of installation or download, or which otherwise accompanies
00008    this software in either electronic or hard copy form.
00009 
00010 ****************************************************************************************/
00011 
00015 #ifndef FBXFILESDK_KFBXMODULES_KFBXQUERYEVENT_H
00016 #define FBXFILESDK_KFBXMODULES_KFBXQUERYEVENT_H
00017 
00018 
00019 #include <fbxfilesdk/fbxfilesdk_def.h>
00020 
00021 // FBX includes
00022 #include <fbxfilesdk/kfbxevents/kfbxevents.h>
00023 
00024 // FBX begin namespace
00025 #include <fbxfilesdk/fbxfilesdk_nsbegin.h>
00026 
00027 
00033     template <typename QueryT>
00034     class KFbxQueryEvent : public kfbxevents::KFbxEvent<KFbxQueryEvent<QueryT> >
00035     {
00036     public:
00044         explicit KFbxQueryEvent(QueryT* pData):mData(pData){}
00045 
00050         QueryT& GetData()const { return *mData; }
00052 
00053     private:
00054         mutable QueryT* mData;
00055 
00056     private:
00057         virtual const char* GetEventName() const { K_ASSERT(false); return ""; }
00058         static const char* FbxEventName() { K_ASSERT(false); return ""; }
00059         friend class KFbxEvent< KFbxQueryEvent<QueryT> >;
00060     };
00061 #include <fbxfilesdk/fbxfilesdk_nsend.h>
00062 
00063 #endif // FBXFILESDK_KFBXMODULES_KFBXQUERYEVENT_H
00064