VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
behaviorGraphResponseAdminContent.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2021 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
14 #include "vrftasks/adminContent.h"
15 #include <vlutil/vlString.h>
18 
24 {
25 public:
27  {
29  DtGraphData
30  };
31 
32 
35 
38 
42 
45 
47  static DtAdminContent* create();
48 
50  virtual bool init();
51 
53  virtual const DtAdminContentMessageType& type() const;
54 
61  virtual GraphResponseType graphResponseType() const;
62  virtual void setGraphResponseType(const GraphResponseType t);
64 
69  //{@
70  virtual const DtString& graphResponse() const;
71  virtual void setGraphResponse(const DtString& str);
73 
76  virtual bool isCapable() const;
77  virtual void setIsCapable(bool capable);
79 
82  virtual DtSimTaskMessageType taskType() const;
83  virtual void setTaskType(DtSimTaskMessageType taskType);
85 
87 
90  virtual DtAdminContent * clone() const;
91 
93  virtual DtString stringRep() const;
94 
96  virtual int netRepSize() const;
97 
99  virtual bool setFromNet(const char* contentBuffer,
100  unsigned contentSize);
101 
103  virtual bool setToNet();
104 
105 protected:
110 };
111 
112 
Admin content that is used to provide a behavior graph in response to a request.
Definition: behaviorGraphResponseAdminContent.h:23
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
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
DtString myGraphResponse
Definition: behaviorGraphResponseAdminContent.h:108
GraphResponseType myResponseType
Definition: behaviorGraphResponseAdminContent.h:106
const DtAdminContent & operator=(const DtAdminContent &orig)
assignment operator; same as copy costructor.
bool myIsCapable
Definition: behaviorGraphResponseAdminContent.h:109
DtSimTaskMessageType myTaskType
Definition: behaviorGraphResponseAdminContent.h:107
#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...
Definition: behaviorGraphResponseAdminContent.h:28
virtual DtString stringRep() const =0
Get a readable string representation of this content. Derived classes must implement this function...
GraphResponseType
Definition: behaviorGraphResponseAdminContent.h:26

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)