- Main Page
- Classes
- Files
- Directories
- Examples

- File List
- File Members

# fbxqueryevent.h

Go to the documentation of this file.

    00001 /****************************************************************************************
    00002
    00003    Copyright (C) 2012 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
    00013 #ifndef _FBXSDK_CORE_QUERY_EVENT_H_
    00014 #define _FBXSDK_CORE_QUERY_EVENT_H_
    00015
    00016 #include <fbxsdk/fbxsdk_def.h>
    00017
    00018 #include <fbxsdk/core/fbxevent.h>
    00019
    00020 #include <fbxsdk/fbxsdk_nsbegin.h>
    00021
    00027 template <typename QueryT> class FbxQueryEvent : public FbxEvent<FbxQueryEvent<QueryT> >
    00028 {
    00029 public:
    00037     explicit FbxQueryEvent(QueryT* pData):mData(pData){}
    00038
    00043     QueryT& GetData()const { return *mData; }
    00045
    00046 private:
    00047     mutable QueryT* mData;
    00048
    00049 private:
    00050     virtual const char* GetEventName() const { FBX_ASSERT(false); return ""; }
    00051     static const char* FbxEventName() { FBX_ASSERT(false); return ""; }
    00052     friend class FbxEvent< FbxQueryEvent<QueryT> >;
    00053 };
    00054
    00055 #include <fbxsdk/fbxsdk_nsend.h>
    00056
    00057 #endif /* _FBXSDK_CORE_QUERY_EVENT_H_ */