VR-Forces 4.2 Class Documentation
ifDoctrines.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
13 #include "vrfmsgs/vrfmsgsDefines.h"
14 #include <vrfExtProtocol/ifaceCont.h>
15 
16 #include <set>
17 
19 
22 
24 const int DtDoctrineAddDoctrine = 1;
26 const int DtDoctrineRenameDoctrine = 3;
27 const int DtDoctrineRequest = 4;
29 const int DtAssignDoctrineToForceBase = 100;
30 
31 
33 
34 
36 {
37 
38 public:
39  typedef std::vector<std::pair<int, std::string> > Operations;
40 
43 
46 
49 
51 
52  virtual int type() const;
53 
54  virtual DtSimInterfaceContent * clone() const;
55 
57  virtual void addOperation(int, const std::string& value);
58 
60  virtual void setOperations(const Operations&);
61 
63  virtual const Operations& operations() const;
64 
66  virtual void clear();
67 
68  virtual int netRepSize() const;
69  virtual bool setFromNet(const char* contentBuffer,
70  unsigned contentSize);
71  virtual bool setToNet();
72 
73  virtual void printDataToString(DtString& str);
74 
75  static DtSimInterfaceContent* creator();
76 
77 protected:
79 };
80 
82 
84 {
85 public:
86  typedef std::set<std::string> Doctrines;
87 
90 
93 
94  virtual ~DtIfDoctrinesListMessage();
95 
97  DtIfDoctrinesListMessage & operator=(const DtIfDoctrinesListMessage & orig);
98 
100  virtual void setDoctrines(const Doctrines&);
101  virtual const Doctrines& doctrines() const;
102 
103  virtual int type() const;
104 
105  virtual DtSimInterfaceContent * clone() const;
106  static DtSimInterfaceContent* creator();
107 
108 protected:
109  virtual int netRepSize() const;
110  virtual bool setFromNet(const char* contentBuffer,
111  unsigned contentSize);
112  virtual bool setToNet();
113 
114 protected:
116 };

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)