VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ifAdminSyncMatrixSetPlanRequest.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2021 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
13 #include "vrfmsgs/vrfmsgsDefines.h"
14 
15 #include <vrftasks/adminContent.h>
16 
17 class DtIfSyncMatrixPlan;
18 
22 {
23 
24 public:
27 
30 
33 
35 
36  virtual const DtAdminContentMessageType& type() const;
37 
38  virtual DtAdminContent* clone() const;
39 
41 
42  virtual const DtIfSyncMatrixPlan* plan() const;
43  virtual void setPlan(const DtIfSyncMatrixPlan* plan);
45 
46  virtual int netRepSize() const;
47  virtual bool setFromNet(const char* contentBuffer, unsigned contentSize);
48  virtual bool setToNet();
49  virtual DtString stringRep() const;
50 
51  static DtAdminContent* create();
52 
53 protected:
55 };
56 
57 namespace DtBufferSerialize
58 {
59  DT_DLL_vrfmsgs int getSize(const DtIfSyncMatrixPlan* const& messagePtr);
60  DT_DLL_vrfmsgs char *encode(const DtIfSyncMatrixPlan* const& messagePtr, char *buffer);
61  DT_DLL_vrfmsgs const char *decode(DtIfSyncMatrixPlan*& messagePtr, const char *buffer);
62 }
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...
DT_DLL_readerWriter int getSize(const DtString &val)
The number of bytes required to encode the value.
virtual int netRepSize() const
#define DT_DLL_vrfmsgs
This file is used to determine how to build.
Definition: vrfmsgsDefines.h:28
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
Admin content to request setting a plan to an object in a synchronization matrix phase. A DtIfSyncMatrixPlansStatus message is typically sent in response to this request.
Definition: ifAdminSyncMatrixSetPlanRequest.h:21
class DtIfSyncMatrixPlan:
Definition: ifSyncMatrixPlan.h:27
const DtAdminContent & operator=(const DtAdminContent &orig)
assignment operator; same as copy costructor.
DtIfSyncMatrixPlan * myPlan
Definition: ifAdminSyncMatrixSetPlanRequest.h:54
DT_DLL_readerWriter char * encode(const DtFilename &val, char *buffer)
Serializes the provided value val into buffer. buffer must have at least the number of bytes returned...
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...
DT_DLL_readerWriter const char * decode(DtString &val, const char *buffer)
Decodes a value from buffer and places the result in val of the type specified by val...
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)