95 template <
typename ValueType>
96 boost::optional<ValueType> findItemValue(
const DtString& key)
const;
99 template <
typename ValueType>
100 boost::optional<ValueType> findItemValue(
int key)
const;
103 template <
typename ValueType>
104 boost::optional<ValueType> findItemValue(
double key)
const;
147 virtual bool erase(
int key);
148 virtual bool erase(
double key);
192 virtual void setKeyType(
const DtString&);
198 virtual bool keyIsInt()
const;
199 virtual bool keyIsReal()
const;
200 virtual bool keyIsString()
const;
211 virtual bool convertKeyToString(
int key,
DtString& str)
const;
214 virtual bool convertKeyToString(
double key,
DtString& str)
const;
217 virtual bool convertStringToKey(
const DtString& str,
int& key)
const;
220 virtual bool convertStringToKey(
const DtString& str,
double& key)
const;
262 template <
typename ValueType>
267 return findPropertyValue<ValueType>(key);
270 return boost::optional<ValueType>();
273 template <
typename ValueType>
279 return findPropertyValue<ValueType>(keyStr);
282 return boost::optional<ValueType>();
285 template <
typename ValueType>
291 return findPropertyValue<ValueType>(keyStr);
294 return boost::optional<ValueType>();
#define DT_DLL_readerWriter
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: readerWriterDefines.h:34
virtual DtlObjPtr variablesStart(DtlObjPtr args) const
virtual void createListEntry(DtPropertyInterface *iFace, DtlObjPtr variableItem, const DtReaderWriter::SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings)
virtual void putData(DtEnvironmentSP, DtEnvValueSP value) const
Override to add attributes of actual data.
DtPropertyInterface * myScratchItem
Definition: rwPropertiesMap.h:259
DT_DLL_readerWriter DtBoost::shared_ptr< DtEnvironment > DtEnvironmentSP
Definition: readerWriter.h:30
virtual bool convertKeyToString(int key, DtString &str) const
Convert the given int key to a DtString. If not possible, returns false.
voidpf void uLong size
Definition: ioapi.h:39
virtual void preWriteItem(std::string &fp, DtReaderWriter *rw, int indentLevel)
Definition: readerWriter.h:85
virtual void postWriteItem(std::string &fp, DtReaderWriter *rw, int indentLevel)
Definition: readerWriterRegistry.h:39
virtual DtlObjPtr getData(DtlObjPtr variableList, const DtReaderWriter::SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings)
Override to allow a variable to be assigned to a property of derived type.
voidpf void * buf
Definition: ioapi.h:39
virtual const char * xmlType() const
Definition: rwPropertiesMap.h:183
Interface class used to define minimal interface for a property.
Definition: propertyInterface.h:48
virtual bool keyIsString() const
virtual bool isSimilarProperty(const DtPropertyInterface *rhs, bool strict=true) const
Returns true prototype is the same.
boost::optional< ValueType > findItemValue(const DtString &key) const
Finds the value of the item with the specified key.
Definition: rwPropertiesMap.h:263
virtual char * encode(char *) const
Encodes the variable bindings into the supplied buffer.
virtual DtPropertyInterface * createPrototype(DtlObjPtr)
DtPropertyInterface * myKeyType
Definition: rwPropertiesMap.h:257
std::list< const DtRwVariableBindings * > DtVariableBindingsList
Definition: readerWriterRegistry.h:29
std::vector< DtFilename > SearchPaths
Definition: readerWriter.h:92
virtual const char * decode(const char *)
Decodes the variable bindings from the specified buffer.
Acts as a map for properties.
Definition: rwPropertiesMap.h:41
bool operator==(const DtRwPropertiesList &) const
DtRwPropertiesList & operator=(const DtRwPropertiesList &)
virtual void erase(DtPropertyInterface *item)
virtual const char * readerWriterType() const
Used to supply a string type that this reader writer type is.
Acts as a DtRwList for properties.
Definition: rwPropertiesList.h:38
virtual int hlaAlignment() const
The required byte alignment of this property when encoding to HLA.
virtual DtPropertyInterface * addItem()
Adds a new item to the end of the list of the same type as myPrototype.
static const char * theXmlType()
The type that is used when archiving to an XML stream.