VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtElementsRecord.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2011 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
6 #pragma once
7 
10 
11 namespace makArchives
12 {
13 
17 {
18 public:
19  typedef std::vector<DtElementDefinitionRecord> ElementDefinitionRecords;
20 
22 
23  virtual ~DtElementsRecord();
24 
25  void setElementDefinitions(const ElementDefinitionRecords& elementDefinitions);
26 
27  void addElementDefinitions(const ElementDefinitionRecords& elementDefinitions);
28 
29  void replaceOrAddElementDefinition(const DtElementDefinitionRecord& elemRec);
30 
31  // Mark all these element definitions are belonging to the hierarchy
32  void setAllIsHierTo(bool isHier);
33 
34  // Update all the records to a file name *if* they don't have one already aka empty
35  // (usally done on load so we know which records go with which files)
36  void setAllFileName(const std::string& fileName);
37 
38  const ElementDefinitionRecords& elementDefinitions() const;
39 
40 protected:
41  friend class boost::serialization::access;
42 
43  template<class Archive>
44  void serialize(Archive & ar, const unsigned int version)
45  {
46  ar & BOOST_SERIALIZATION_NVP(myElementDefinitions);
47  }
48 
50 };
51 }
52 
BOOST_CLASS_VERSION(makArchives::DtDiGuySettingsRecord, 3)
void serialize(Archive &ar, const unsigned int version)
Definition: DtElementsRecord.h:44
Record containing a collection of element definition records.
Definition: DtElementsRecord.h:16
ElementDefinitionRecords myElementDefinitions
Definition: DtElementsRecord.h:49
Record for an element definition (new type)
Definition: DtElementDefinitionRecord.h:90
#define DT_DLL_MAKARCHIVES
Definition: makArchives.h:31
std::vector< DtElementDefinitionRecord > ElementDefinitionRecords
Definition: DtElementsRecord.h:19

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)