VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rwRouteActionList.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
7 
9 #pragma once
10 
13 #include <readerWriter/rwList.h>
14 
17 #include "vlutil/vlList.h"
18 
20 {
21 public:
22 
25 
27  DtRwRouteActionList(const DtString& writeName,
28  DtReaderWriterRegistry* parentRegistry = NULL);
29 
30  DtRwRouteActionList(const DtSymbolString& writeName,
31  DtReaderWriterRegistry* parentRegistry = NULL);
32 
34  virtual ~DtRwRouteActionList();
35 
37  DtRwRouteActionList(const DtString& writeName,
38  const DtRwRouteActionList& orig,
39  DtReaderWriterRegistry* parentRegistry = NULL);
40 
41  DtRwRouteActionList(const DtSymbolString& writeName,
42  const DtRwRouteActionList& orig,
43  DtReaderWriterRegistry* parentRegistry = NULL);
44 
47 
48 protected:
50  virtual DtlObjPtr getData(DtlObjPtr args,
51  const DtReaderWriter::SearchPaths& searchPaths,
52  const DtVariableBindingsList& variableBindings);
53 
56  void clearList();
57 
61  void copyListItemsFrom(const DtRwRouteActionList& sourceList);
62 
63 protected:
67  virtual const char* readerWriterType() const;
68 };
69 
70 namespace DtBufferSerialize
71 {
72  int getSize(const DtRwRouteActionList& list);
73  char* encode(const DtRwRouteActionList& list, char* buffer);
74  const char* decode(DtRwRouteActionList& list, const char* buffer);
75 }
DT_DLL_readerWriter int getSize(const DtString &val)
The number of bytes required to encode the value.
This class allows one to collect and compare strings using an index number instead of having to do st...
Definition: symbolString.h:27
A Readable, Writable version of DtList. This class cannot be used directly, but must be inherited to ...
Definition: rwList.h:26
Definition: rwRouteActionList.h:19
virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings)=0
This method must be overridden by a subclass. Within this method, new instances of the DtReaderWriter...
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. buffer must have at least the number of bytes returned...
#define DT_DLL_vrftasks
This file is used to determine how to build.
Definition: vrftasksDefines.h:26
const DtRwList & operator=(const DtRwList &orig)
Calls down to DtReaderWriter::operator=(). List elements are not copied.
virtual const char * readerWriterType() const
Used to supply a string type that this reader writer type is. This can be used in place of dynamic-ca...
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...

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)