VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtSchemaEntry.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #ifndef DtSchemaEntry_H_
10 #define DtSchemaEntry_H_
11 
14 
15 namespace makArchives
16 {
21  {
22  public:
23  typedef std::vector<DtSchemaParameter> DtSchemaParameters;
24 
26  DtSchemaEntry();
27 
29  DtSchemaEntry(const std::string& name);
30 
32  DtSchemaEntry(const DtSchemaEntry& copy);
33 
35  virtual ~DtSchemaEntry();
36 
39  static const DtSchemaEntry& defaultInstance();
40 
42  DtSchemaEntry& operator=(const DtSchemaEntry& copy);
43 
45  const std::string& name() const
46  {
47  return myName;
48  }
49 
51  void setName(const std::string& n)
52  {
53  myName = n;
54  }
56  virtual void addParameter(const DtSchemaParameter& parameter);
57 
60  virtual bool removeSchemaParameter(const std::string& name);
61 
64  {
65  return myParameters;
66  }
67 
69  virtual bool renameParameter(const std::string& oldName, const std::string& newName);
70 
73  DtSchemaParameter* findSchemaParameter(const std::string& name);
74 
77  const DtSchemaParameter* findSchemaParameter(const std::string& name) const;
78 
79  protected:
80 
81  friend class boost::serialization::access;
82 
86 
87  template <typename Archive>
88  void serialize(Archive& ar,unsigned int version)
89  {
90  ar & BOOST_SERIALIZATION_NVP(myName);
91  ar & BOOST_SERIALIZATION_NVP(myParameters);
92  }
93 
95  static bool findSchemaFunction(const DtSchemaParameter& parameter, const std::string& name);
96 
97  protected:
98  std::string myName;
100  };
101 };
102 
104 
105 #endif
BOOST_CLASS_VERSION(makArchives::DtDiGuySettingsRecord, 3)
std::vector< DtSchemaParameter > DtSchemaParameters
Definition: DtSchemaEntry.h:23
void setName(const std::string &n)
set the schema&#39;s name.
Definition: DtSchemaEntry.h:51
void serialize(Archive &ar, unsigned int version)
When the class Archive corresponds to an output archive, the &amp; operator is defined similar to &lt;&lt;...
Definition: DtSchemaEntry.h:88
Contains DLL export macros.
const std::string & name() const
get the schema&#39;s name.
Definition: DtSchemaEntry.h:45
The makArchives::DtSchemaParameter contains a parameter that will be used as part of a schema entry d...
Definition: DtSchemaParameter.h:21
DtSchemaParameters myParameters
Definition: DtSchemaEntry.h:99
The makArchives::DtSchemaEntry class is a collection of makArchives::DtSchemaParameter objects...
Definition: DtSchemaEntry.h:20
std::string myName
Definition: DtSchemaEntry.h:98
#define DT_DLL_MAKARCHIVES
Definition: makArchives.h:31
const DtSchemaParameters & schemaParameters() const
Get the collection of schema parameters.
Definition: DtSchemaEntry.h:63

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)