VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
supplyListResponseAdmin.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2019 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
13 #include <vrftasks/adminContent.h>
14 #include <list>
15 
16 class DtEntityType;
17 
18 typedef std::vector<DtEntityType> DtSupplyVector;
19 
23 {
24 public:
25 
28 
31 
35 
37  virtual ~DtSupplyListResponseAdmin();
38 
40  static DtAdminContent* create();
41 
43  virtual bool init();
44 
46  virtual const DtAdminContentMessageType& type() const;
47 
49 
50  virtual const DtSupplyVector& supplies() const;
51  virtual DtSupplyVector& supplies();
53 
56  virtual void addSupply(const DtEntityType& type);
58  virtual void clearSupplies();
59 
62  virtual DtAdminContent* clone() const;
63 
65  virtual DtString stringRep() const;
66 
68  virtual int netRepSize() const;
69 
71  virtual bool setFromNet(const char* contentBuffer,
72  unsigned contentSize);
73 
75  virtual bool setToNet();
76 
77 protected:
80 };
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
std::vector< DtEntityType > DtSupplyVector
Definition: supplyListResponseAdmin.h:16
Admin content which contains the list of supplies on an entity. This is the response to the DtSupplyL...
Definition: supplyListResponseAdmin.h:22
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.
Definition: vrfObjectMessageTypeTemplate.h:24
const DtAdminContent & operator=(const DtAdminContent &orig)
assignment operator; same as copy costructor.
DtSupplyVector mySupplies
The list of supplies.
Definition: supplyListResponseAdmin.h:79
#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 Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)