25 template <
typename T,
bool T_autoDelete>
60 DtListItem* item = first();
85 void*
remove(DtListItem* item);
86 void*
remove(T* item);
101 return xmlType.c_str();
116 DtListItem*
find( boost::function<
bool (
const T&)> predFcn)
const;
132 namespace DtBufferSerialize
136 template <
typename T,
bool T_autoDelete>
142 template <
typename T,
bool T_autoDelete>
149 template <
typename T,
bool T_autoDelete>
255 #include "vrfutil/rwTemplatedList.inl"
Definition: rwTemplatedList.h:178
DtRwTemplatedRealList(const DtString &name, const DtRwTemplatedRealList &orig, DtReaderWriterRegistry *parentRegistry=NULL)
Definition: rwTemplatedList.h:242
DtRwTemplatedUUIDList(const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL)
Definition: rwTemplatedList.h:187
DT_DLL_readerWriter int getSize(const DtString &val)
The number of bytes required to encode the value.
DtRwTemplatedUUIDList(const DtRwTemplatedUUIDList &orig, DtReaderWriterRegistry *parentRegistry=NULL)
Definition: rwTemplatedList.h:198
bool operator==(const DtRwTemplatedListPtr &) const
Equivalence operators.
virtual void populateList(boost::function< void(DtReaderWriter *)> addFunction, DtEnvironmentSP env, DtEnvValueSP node, const DtReaderWriter::SearchPaths &searchPaths, const DtVariableBindingsList &bindings)
Definition: rwTemplatedList.h:203
Definition: symbolString.h:20
DtRwTemplatedStringList(const DtSymbolString &name, const DtRwTemplatedStringList &orig, DtReaderWriterRegistry *parentRegistry=NULL)
Definition: rwTemplatedList.h:169
A Readable, Writable version of DtList. This class cannot be used directly, but must be inherited to ...
Definition: rwList.h:26
DtString myXmlType
Definition: rwTemplatedList.h:129
bool operator!=(const DtRwTemplatedListPtr &) const
DT_DLL_readerWriter DtBoost::shared_ptr< DtEnvironment > DtEnvironmentSP
Definition: readerWriter.h:30
DtRwTemplatedStringList(const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL)
real constructor
Definition: rwTemplatedList.h:160
DtRwTemplatedListPtr & operator=(const DtRwTemplatedListPtr &orig)
Definition: rwTemplatedList.h:229
DtRwTemplatedUUIDList(const DtString &name, const DtRwTemplatedUUIDList &orig, DtReaderWriterRegistry *parentRegistry=NULL)
Definition: rwTemplatedList.h:190
Definition: readerWriter.h:85
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
void copyList(const DtRwTemplatedListPtr &orig)
DtRwTemplatedRealList(const DtRwTemplatedRealList &orig, DtReaderWriterRegistry *parentRegistry=NULL)
Definition: rwTemplatedList.h:250
virtual DtListItem * addBefore(DtReaderWriter *data, const DtString &before)
Add element to the list just before the indicated item. Returns the DtListItem envelope object that c...
static const char * theXmlType()
Definition: rwTemplatedList.h:98
Definition: readerWriterRegistry.h:39
Contains the DtUUID class declaration.
DtRwTemplatedStringList(const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL)
Definition: rwTemplatedList.h:162
virtual DtString prettyPrint() const
Routine to return a human readable form of the reader/writer variable. Not all reader/writer classes ...
DtRwTemplatedRealList()
default constructor
Definition: rwTemplatedList.h:233
Description: Readable, Writable uuid string. Use this class in order to convert from object marking t...
Definition: rwUUID.h:431
virtual const char * xmlType() const
Routines to archive/dearchive from an XML Environment.
Definition: rwTemplatedList.h:104
virtual DtListItem * add(T *data)
Define this function to hide the DtRwList version, and accept only the specific DtReaderWriter subcla...
Definition: rwTemplatedList.h:80
static const char * ListReaderWriterType()
DtIteratorBase< T > iterator
Definition: rwTemplatedList.h:29
DtRwTemplatedIntList(const DtRwTemplatedIntList &orig, DtReaderWriterRegistry *parentRegistry=NULL)
Definition: rwTemplatedList.h:224
Description: DtIteratorBase is the base class for iterators used to iterate over a DtList...
Definition: iteratorBase.h:32
DtRwTemplatedRealList(const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL)
real constructor
Definition: rwTemplatedList.h:236
virtual std::set< DtString > supportedXmlTypes() const
Returns list of supported types. Default is the templated object xml type.
DtRwTemplatedIntList(const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL)
Definition: rwTemplatedList.h:213
std::list< const DtRwVariableBindings * > DtVariableBindingsList
Definition: readerWriterRegistry.h:29
DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings)
This method must be overridden by a subclass. Within this method, new instances of the DtReaderWriter...
DtRwTemplatedRealList(const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL)
Definition: rwTemplatedList.h:239
Description: Readable, Writable int.
Definition: rwInt.h:25
DtRwTemplatedStringList(const DtRwTemplatedStringList &orig, DtReaderWriterRegistry *parentRegistry=NULL)
Definition: rwTemplatedList.h:173
std::vector< DtFilename > SearchPaths
Definition: readerWriter.h:92
DtRwTemplatedUUIDList(const DtSymbolString &name, const DtRwTemplatedUUIDList &orig, DtReaderWriterRegistry *parentRegistry=NULL)
Definition: rwTemplatedList.h:194
virtual DtListItem * add(DtReaderWriter *data)
Add element to the end of the list. Returns the DtListItem envelope object that contains your new ele...
DtRwTemplatedStringList()
default constructor
Definition: rwTemplatedList.h:157
virtual ~DtRwTemplatedListPtr()
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 DtListItem * insertItemAt(T *data, int index)
Definition: rwTemplatedList.h:58
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...
void removeAll()
Removes all entries from the list. If autoDelete is true, also deletes all items. ...
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
DtIteratorBase< const T > const_iterator
Definition: rwTemplatedList.h:30
Definition: rwTemplatedList.h:153
A version of DtRwList that contains a homogeneous list of a templated RW type. The templated type spe...
Definition: rwTemplatedList.h:26
#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
DtRwTemplatedListPtr()
default constructor
DtRwTemplatedIntList()
default constructor
Definition: rwTemplatedList.h:207
DtRwTemplatedRealList(const DtSymbolString &name, const DtRwTemplatedRealList &orig, DtReaderWriterRegistry *parentRegistry=NULL)
Definition: rwTemplatedList.h:246
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...
DtRwTemplatedIntList(const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL)
real constructor
Definition: rwTemplatedList.h:210
void removeAndDeleteAll()
Removes and deletes all entries in the list.
DtRwTemplatedIntList(const DtString &name, const DtRwTemplatedIntList &orig, DtReaderWriterRegistry *parentRegistry=NULL)
Definition: rwTemplatedList.h:216
DtListItem * find(boost::function< bool(const T &)> predFcn) const
Finds the first item in the list for which predFcn returns true.
DtRwTemplatedUUIDList()
default constructor
Definition: rwTemplatedList.h:182
virtual DtSymbolString name() const
Accessor for name of this readable/writable object.
DtRwTemplatedUUIDList(const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL)
real constructor
Definition: rwTemplatedList.h:185
DtRwTemplatedIntList(const DtSymbolString &name, const DtRwTemplatedIntList &orig, DtReaderWriterRegistry *parentRegistry=NULL)
Definition: rwTemplatedList.h:220
DtRwTemplatedStringList(const DtString &name, const DtRwTemplatedStringList &orig, DtReaderWriterRegistry *parentRegistry=NULL)
Definition: rwTemplatedList.h:165