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 #include <algorithm>
16 
17 namespace makArchives
18 {
23  {
24  public:
25  typedef std::vector<DtSchemaParameter> DtSchemaParameters;
26 
28  DtSchemaEntry();
29 
31  DtSchemaEntry(const std::string& name);
32 
34  DtSchemaEntry(const DtSchemaEntry& copy);
35 
37  virtual ~DtSchemaEntry();
38 
41  static const DtSchemaEntry& defaultInstance();
42 
44  DtSchemaEntry& operator=(const DtSchemaEntry& copy);
45 
47  const std::string& name() const
48  {
49  return myName;
50  }
51 
53  void setName(const std::string& n)
54  {
55  myName = n;
56  }
58  virtual void addParameter(const DtSchemaParameter& parameter);
59 
62  virtual bool removeSchemaParameter(const std::string& name);
63 
66  {
67  return myParameters;
68  }
69 
71  virtual bool renameParameter(const std::string& oldName, const std::string& newName);
72 
75  DtSchemaParameter* findSchemaParameter(const std::string& name);
76 
79  const DtSchemaParameter* findSchemaParameter(const std::string& name) const;
80 
81  protected:
82 
83  friend class boost::serialization::access;
84 
88 
89  template <typename Archive>
90  void serialize(Archive& ar,unsigned int version)
91  {
92  ar & BOOST_SERIALIZATION_NVP(myName);
93  ar & BOOST_SERIALIZATION_NVP(myParameters);
94  }
95 
97  static bool findSchemaFunction(const DtSchemaParameter& parameter, const std::string& name);
98 
99  protected:
100  std::string myName;
102  };
103 };
104 
106 
107 #endif
BOOST_CLASS_VERSION(makArchives::DtDiGuySettingsRecord, 3)
std::vector< DtSchemaParameter > DtSchemaParameters
Definition: DtSchemaEntry.h:25
void setName(const std::string &n)
set the schema&#39;s name.
Definition: DtSchemaEntry.h:53
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:90
Contains DLL export macros.
const std::string & name() const
get the schema&#39;s name.
Definition: DtSchemaEntry.h:47
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:101
The makArchives::DtSchemaEntry class is a collection of makArchives::DtSchemaParameter objects...
Definition: DtSchemaEntry.h:22
std::string myName
Definition: DtSchemaEntry.h:100
#define DT_DLL_MAKARCHIVES
Definition: makArchives.h:31
const DtSchemaParameters & schemaParameters() const
Get the collection of schema parameters.
Definition: DtSchemaEntry.h:65

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)