VR-Forces 4.0.4 Class Documentation
include/vrfobjparam/vrfParamDb.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2004 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: vrfParamDb.h,v $ $Revision: 1.13 $ $State: Exp $
00007 *******************************************************************************/
00008 
00011 
00013 
00014 #ifndef DtVrfParameterDb_H_
00015 #define DtVrfParameterDb_H_
00016 
00017 #include <vlutil/vlList.h>
00018 #include "vrfobjparam/vrfobjparamDefines.h"
00019 #include <list>
00020 
00021 class DtObjectType;
00022 class DtVrfObjectParameters;
00023 class DtVrfParameterDbEntry;
00024 class DtFilename;
00025 class DtString;
00026 
00034 class DT_DLL_vrfobjparam DtVrfParameterDb
00035 {
00036 public:
00037 
00039    DtVrfParameterDb();
00040 
00042    virtual ~DtVrfParameterDb();
00043 
00046    virtual bool init();
00047 
00052    virtual DtVrfParameterDbEntry* add(const DtObjectType& objectType,
00053       DtVrfObjectParameters * parameters);
00054 
00062    virtual DtVrfObjectParameters * lookup(
00063       const DtObjectType & objectType, 
00064       DtObjectType * matchingType = NULL,
00065       DtString* source = NULL) const;
00066 
00069    virtual void remove(const DtObjectType & objectType);
00070 
00073    virtual void removeAll();
00074 
00076    virtual const DtList& parameterList() const;
00077 
00079    virtual bool load(const DtFilename& filename) {return true;}
00080 
00082    virtual bool save(const DtFilename& filename) {return true;}
00083 
00086    virtual void addParameters(const DtObjectType& objectType,
00087       DtVrfObjectParameters * newParameters);
00088 
00091    virtual DtVrfObjectParameters * lookupParameters(
00092       const DtObjectType & objectType, DtObjectType * matchingType) const;
00093 
00096    virtual void removeParameters(const DtObjectType & objectType);
00097 
00100    virtual void removeAndDeleteAll();
00101 
00105    virtual DtVrfParameterDbEntry * lookupParameterDbEntry(
00106       const DtObjectType & objectType, DtObjectType * matchingType) const;
00107 
00109    virtual int numParameterEntries() const;
00110 
00115    virtual std::list<DtString>* getSysDefExtensionList();
00116 
00119    virtual void addExtension(DtString);
00120 
00121 public:
00122 
00124    static DtVrfParameterDb* create();
00125 
00126 protected:
00127 
00134    virtual void addParameterDbEntry(DtVrfParameterDbEntry * newParameterEntry);
00135 
00138    virtual DtListItem * lookupParameters(const DtObjectType & objectType) const;
00139 
00142    void emptyList();
00143 
00145    virtual DtVrfParameterDbEntry* createParameterEntry() const;
00146 
00147 private:
00149    DtVrfParameterDb(const DtVrfParameterDb& orig);
00150 
00152    DtVrfParameterDb& operator=(const DtVrfParameterDb& orig);
00153 
00154 protected:
00155 
00157    DtList myParameterList;
00158 };
00159 
00160 #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)