VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
aggregatedResourceList.h
Go to the documentation of this file.
1 /**************************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 **************************************************************************************/
5 /**************************************************************************************
6 ** $RCSfile: aggregatedResourceList.h,v $ $Revision: 1.1 $ $State: Exp $
7 **************************************************************************************/
8 
11 
12 #ifndef aggregatedResourceList_H_
13 #define aggregatedResourceList_H_
14 
15 #include <readerWriter/rwList.h>
16 
17 class DtListItem;
18 
20 #include "vrfutil/vrfutilDefines.h"
22 {
23 public:
26 
28  DtAggregatedResourceList(const DtString& name, DtReaderWriterRegistry* parentRegistry = NULL);
29  DtAggregatedResourceList(const DtSymbolString& name, DtReaderWriterRegistry* parentRegistry = NULL);
30 
33  const DtAggregatedResourceList& orig,
34  DtReaderWriterRegistry* parentRegistry = NULL);
35 
38  const DtAggregatedResourceList& orig,
39  DtReaderWriterRegistry* parentRegistry = NULL);
40 
42  virtual ~DtAggregatedResourceList() override;
43 
45 
47  virtual const char* readerWriterType() const override;
48 
51  virtual void copyListFrom(const DtAggregatedResourceList& orig);
52 
54  virtual void clear();
55 
57  bool operator==(const DtAggregatedResourceList&) const;
58  bool operator!=(const DtAggregatedResourceList&) const;
59 
60 
61 
62 protected:
63 
64  virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
65  const DtVariableBindingsList& variableBindings) override;
66 
67 };
68 
69 namespace DtBufferSerialize
70 {
73 
76  DT_DLL_vrfutil char *encode(const DtAggregatedResourceList& val, char *buffer);
77 
80  DT_DLL_vrfutil const char *decode(DtAggregatedResourceList& val, const char *buffer) ;
81 };
82 
83 
84 #endif
DT_DLL_readerWriter int getSize(const DtString &val)
The number of bytes required to encode the value.
virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings) override=0
This method must be overridden by a subclass. Within this method, new instances of the DtReaderWriter...
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
bool operator!=(const DtRwList &rhs) const
Definition: rwList.h:158
Definition: readerWriterRegistry.h:39
std::list< const DtRwVariableBindings * > DtVariableBindingsList
Definition: readerWriterRegistry.h:29
std::vector< DtFilename > SearchPaths
Definition: readerWriter.h:92
bool operator==(const DtRwList &rhs) const
Iterates over all items and calls the factory to compare.
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...
virtual const char * readerWriterType() const override
Used to supply a string type that this reader writer type is. This can be used in place of dynamic-ca...
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
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...
RW List which holds DtSubordinatesEntry subclasses.
Definition: aggregatedResourceList.h:21

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)