VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
availableFormationsAdmin.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
13 #include "vrftasks/adminContent.h"
14 #include <list>
15 
22 {
23 public:
24 
27 
30 
34 
36  virtual ~DtAvailableFormationsAdmin();
37 
39  static DtAdminContent* create();
40 
42  virtual bool init();
43 
45  virtual const DtAdminContentMessageType& type() const;
46 
48 
49  virtual const std::list<DtString>& formationList() const;
50  virtual std::list<DtString>& formationList();
52 
54  virtual void addFormation(const DtString& formationName);
56  virtual void clearFormationList();
57 
59 
60  virtual DtString currentFormation() const;
61  virtual void setCurrentFormation(const DtString& formationName);
63 
66  virtual DtAdminContent * clone() const;
67 
69  virtual DtString stringRep() const;
70 
72  virtual int netRepSize() const;
73 
75  virtual bool setFromNet(const char* contentBuffer,
76  unsigned contentSize);
77 
79  virtual bool setToNet();
80 
81 protected:
83  std::list<DtString> myFormationList;
85 };
86 
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize)
Sets the contents of this set request based on the network buffer. Base class does nothing and return...
virtual int netRepSize() const
DtString myCurrentFormation
Definition: availableFormationsAdmin.h:84
virtual DtAdminContent * clone() const =0
Make a copy of this content. Returns a pointer to a newly created copy of this class. Derived classes must override this function to create and return an instance of the derived type.
Admin content which contains the list of formation names that a particular aggregate entity has avail...
Definition: availableFormationsAdmin.h:21
Definition: vrfObjectMessageTypeTemplate.h:24
const DtAdminContent & operator=(const DtAdminContent &orig)
assignment operator; same as copy costructor.
std::list< DtString > myFormationList
The list of available formation names.
Definition: availableFormationsAdmin.h:83
#define DT_DLL_vrftasks
This file is used to determine how to build.
Definition: vrftasksDefines.h:26
virtual bool init()
Base class init does nothing, but this will be called by create, in case any other deriving class nee...
DtAdminContent.
Definition: adminContent.h:23
virtual const DtAdminContentMessageType & type() const =0
virtual bool setToNet()
Sets netRep buffer to the contents of this set request. Base class does nothing and returns true...
virtual DtString stringRep() const =0
Get a readable string representation of this content. Derived classes must implement this function...

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)