VR-Forces 4.1.1 Class Documentation
DtModelSetRealizationsRecord.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2009 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtModelSetRealizationsRecord.h,v $ $Revision: 1.3 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #pragma once
14 
17 
18 #include <vector>
19 
20 namespace makArchives
21 {
27  {
28  public:
29 
30  // A list of visual mode records
31  typedef std::vector<DtModelSetRealizationRecord> ModelSetRealizationRecords;
32 
35 
38 
40  virtual ~DtModelSetRealizationsRecord();
41 
44 
45  const ModelSetRealizationRecords& modelSetRealizations() const;
46 
47  void addModelSetRealization( int modelSet, bool realized );
48 
49 
50  protected:
51  friend class boost::serialization::access;
52 
53  template <typename Archive>
54  void serialize(Archive& ar,unsigned int version)
55  {
56  if(version == 0)
57  {
58  std::list<DtModelSetRealizationRecord> tmp;
59  ar & boost::serialization::make_nvp("myModelSetRealizations", tmp);
60  myModelSetRealizations.clear();
61  std::copy(tmp.begin(),tmp.end(),std::back_inserter(myModelSetRealizations));
62  }
63  if(version >= 1)
64  {
65  ar & BOOST_SERIALIZATION_NVP(myModelSetRealizations);
66  }
67  }
68 
69  protected:
70  // A vector, by ObserverMode, of ModelSetLists
72  };
73 }
74 
76 
77 

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)