VR-Forces 4.0.4 Class Documentation
include/entityEditorImpl/myMtlParamDbEntry.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2005 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: myMtlParamDbEntry.h,v $ $Revision: 1.2 $ $State: Exp $
00007 *******************************************************************************/
00008 
00011 
00012 #ifndef MyMtlParameterDbEntry_H_
00013 #define MyMtlParameterDbEntry_H_
00014 
00015 #include "vrfobjparam/mtlParamDbEntry.h"
00016 #include <map>
00017 #include <mtl/mtl.h>
00018 
00019 class DtlObj;
00020 class DtReaderWriter;
00021 
00022 typedef std::map<DtlObj*, std::string> DtlObjStringMap;
00023 typedef std::map<DtReaderWriter*, std::string> DtReaderWriterCommentMap;
00024 
00029 
00030 #include "entityEditorImpl/entityEditorImplDefines.h"
00031 
00032 class DT_DLL_entityeditorimpl MyMtlParameterDbEntry : public DtMtlParameterDbEntry
00033 {
00034 public:
00035 
00037    MyMtlParameterDbEntry();
00038 
00040    virtual ~MyMtlParameterDbEntry();
00041 
00042    void setCommentMap(const DtReaderWriterCommentMap&);
00043    const DtReaderWriterCommentMap& commentMap() const;
00044 
00045 private:
00046 
00048    MyMtlParameterDbEntry(const MyMtlParameterDbEntry& orig);
00049 
00051    MyMtlParameterDbEntry& operator=(const MyMtlParameterDbEntry& orig);
00052 
00053 protected:
00055    virtual DtVrfObjectParameters* readParameterEntry(FILE* fp);
00056 
00057 public:
00058    static void postGetSelfCb(DtReaderWriter* readerWriterObject,
00059                              DtlObjPtr args, void* userData);
00060 
00062    virtual void setCommentMapFrom(const DtReaderWriterCommentMap&);
00063 
00064 protected:
00065    DtReaderWriterCommentMap   myCommentMap;
00066    DtlObjStringMap            myObjectCommentMap;
00067 };
00068 
00069 inline void MyMtlParameterDbEntry::setCommentMap(const DtReaderWriterCommentMap& a)
00070 {
00071    myCommentMap = a;
00072 }
00073 
00074 inline const DtReaderWriterCommentMap& MyMtlParameterDbEntry::commentMap() const
00075 {
00076    return myCommentMap;
00077 }
00078 
00079 #endif

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)