VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rwEngagementInfoList.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include <vlutil/vlMachineTypes.h>
12 #include <readerWriter/rwList.h>
14 
16 
18 #include "vrfutil/vrfutilDefines.h"
20 {
21 
22 public:
23 
26 
28  DtRwEngagementInfoList(const DtString& name,
29  DtReaderWriterRegistry* parentRegistry = 0);
31  DtReaderWriterRegistry* parentRegistry = 0);
32 
35  DtReaderWriterRegistry* parentRegistry = 0);
36 
39 
41  virtual ~DtRwEngagementInfoList();
42 
44  virtual void addEngagement(DtRwEngagementInfo* engagement);
45 
47  virtual bool removeEngagement(DtRwEngagementInfo* engagement);
48 
49  virtual void copyList(const DtRwEngagementInfoList& orig);
50 
53  virtual void emptyList();
54 
56  virtual DtRwEngagementInfoList* clone() const;
57 
58 protected:
59 
62  virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
63  const DtVariableBindingsList& variableBindings);
64 };
65 
66 namespace DtBufferSerialize
67 {
70 
76  DT_DLL_vrfutil char *encode(const DtRwEngagementInfoList& list, char *buffer);
77 
83  DT_DLL_vrfutil const char *decode(DtRwEngagementInfoList& list, const char *buffer);
84 }
85 
DT_DLL_readerWriter int getSize(const DtString &val)
The number of bytes required to encode the value.
Definition: symbolString.h:20
A Readable, Writable version of DtList.
Definition: rwList.h:26
virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings)=0
This method must be overridden by a subclass.
Definition: readerWriterRegistry.h:39
std::list< const DtRwVariableBindings * > DtVariableBindingsList
Definition: readerWriterRegistry.h:29
std::vector< DtFilename > SearchPaths
Definition: readerWriter.h:92
DT_DLL_readerWriter char * encode(const DtFilename &val, char *buffer)
Serializes the provided value val into buffer.
const DtRwList & operator=(const DtRwList &orig)
Calls down to DtReaderWriter::operator=(). List elements are not copied.
#define DT_DLL_vrfutil
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfutilDefines.h:34
A list of DtRwEngagementInfo.
Definition: rwEngagementInfoList.h:19
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...
Contains information about an engagement against a single enemy.
Definition: rwEngagementInfo.h:23

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)