VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfParameterDb.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2004 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: vrfParamDb.h,v $ $Revision: 1.13 $ $State: Exp $
7 *******************************************************************************/
8 
11 
13 
14 #ifndef DtVrfParameterDb_H_
15 #define DtVrfParameterDb_H_
16 
17 #include <vlutil/vlList.h>
19 #include <list>
20 
21 class DtObjectType;
24 class DtFilename;
25 class DtString;
26 
35 {
36 public:
37 
40 
42  virtual ~DtVrfParameterDb();
43 
46  virtual bool init();
47 
52  virtual DtVrfParameterDbEntry* add(const DtObjectType& objectType,
53  DtVrfObjectParameters * parameters);
54 
62  virtual DtVrfObjectParameters * lookup(
63  const DtObjectType & objectType,
64  DtObjectType * matchingType = NULL,
65  DtString* source = NULL) const;
66 
69  virtual void remove(const DtObjectType & objectType);
70 
73  virtual void removeAll();
74 
76  virtual const DtList& parameterList() const;
77 
79  virtual bool load(const DtFilename& filename) {return true;}
80 
82  virtual bool save(const DtFilename& filename) {return true;}
83 
86  virtual void addParameters(const DtObjectType& objectType,
87  DtVrfObjectParameters * newParameters);
88 
91  virtual DtVrfObjectParameters * lookupParameters(
92  const DtObjectType & objectType, DtObjectType * matchingType) const;
93 
96  virtual void removeParameters(const DtObjectType & objectType);
97 
100  virtual void removeAndDeleteAll();
101 
105  virtual DtVrfParameterDbEntry * lookupParameterDbEntry(
106  const DtObjectType & objectType, DtObjectType * matchingType) const;
107 
109  virtual int numParameterEntries() const;
110 
115  virtual std::list<DtString>* getSysDefExtensionList();
116 
119  virtual void addExtension(DtString);
120 
121 public:
122 
124  static DtVrfParameterDb* create();
125 
126 protected:
127 
134  virtual void addParameterDbEntry(DtVrfParameterDbEntry * newParameterEntry);
135 
138  virtual DtListItem * lookupParameters(const DtObjectType & objectType) const;
139 
142  void emptyList();
143 
145  virtual DtVrfParameterDbEntry* createParameterEntry() const;
146 
147 private:
149  DtVrfParameterDb(const DtVrfParameterDb& orig);
150 
152  DtVrfParameterDb& operator=(const DtVrfParameterDb& orig);
153 
154 protected:
155 
158 };
159 
160 #endif

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)