59 template <
typename SpecificPropType>
62 return findProperty<SpecificPropType>(fieldName);
65 template <
typename SpecificPropType>
68 return findProperty<SpecificPropType>(fieldName);
80 template <
typename ValueType>
83 return findPropertyValue<ValueType>(fieldName);
92 template <
typename ValueType>
95 return findAndSetPropertyValue<ValueType>(fieldName, val);
116 template <
typename SpecificPropType>
119 return addNewProperty<SpecificPropType>(fieldName);
152 virtual void putSelf(std::string& fp,
int indentLevel,
bool writeUnspecified,
153 const DtFilename& path);
DtRwProperties & operator=(const DtRwProperties &orig)
#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
const DtPropertyInterface * findFieldPropertyInterface(const DtString &fieldName) const
Definition: rwPropertiesStructure.h:41
DtPropertyInterface * findFieldPropertyInterface(const DtString &fieldName)
Definition: rwPropertiesStructure.h:46
virtual bool addProperty(DtPropertyInterface *)
Adds an existing property to this list. This class will then take ownership of the property...
DT_DLL_readerWriter DtBoost::shared_ptr< DtEnvironment > DtEnvironmentSP
Definition: readerWriter.h:30
virtual bool removeProperty(const DtString &propertyName)
bool findAndSetFieldValue(const DtString &fieldName, ValueType val)
This is a convenience function that combines the functionality of findField and setPropertyValue to i...
Definition: rwPropertiesStructure.h:93
Definition: readerWriterRegistry.h:39
virtual bool removeField(const DtString &propertyName)
Definition: rwPropertiesStructure.h:129
SpecificPropType * addNewField(const DtString &fieldName)
Adds a new property of the specified type as a field to the structure and returns pointer to the new ...
Definition: rwPropertiesStructure.h:117
Interface class used to define minimal interface for a property.
Definition: propertyInterface.h:48
ReaderWriter object that maintains a list of reader-writer variable bindings.
Definition: rwVariableBindings.h:27
virtual bool addField(DtPropertyInterface *field)
Definition: rwPropertiesStructure.h:106
A structure composed of distinct fields, each of which is itself a property.
Definition: rwPropertiesStructure.h:21
virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &variableBindings=nullVariableReference())
Override to allow a variable to be assigned to a property of derived type.
std::list< const DtRwVariableBindings * > DtVariableBindingsList
Definition: readerWriterRegistry.h:29
virtual bool removeField(const DtPropertyInterface *property)
Definition: rwPropertiesStructure.h:134
std::vector< DtFilename > SearchPaths
Definition: readerWriter.h:92
const SpecificPropType * findField(const DtString &fieldName) const
Definition: rwPropertiesStructure.h:60
virtual const char * readerWriterType() const
Used to supply a string type that this reader writer type is.
virtual void putData(std::string &, int indentLevel=0)
Deriving class overrides these to get/put class specific data.
virtual void putSelf(std::string &fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename())
Top level call to write itself to file.
DtPropertyInterface * myScratchItem
Definition: rwPropertiesStructure.h:178
A list of properties.
Definition: rwProperties.h:126
static const char * theXmlType()
The type that is used when archiving to an XML stream.
virtual const char * xmlType() const
Definition: rwPropertiesStructure.h:160
virtual bool isSimilarProperty(const DtPropertyInterface *rhs, bool strict=true) const
Returns true if the readerWriterType is the same.
boost::optional< ValueType > findFieldValue(const DtString &fieldName) const
Definition: rwPropertiesStructure.h:81
virtual void copyVariables(const DtRwVariableBindings &other)
Clones variables using the property factory.
SpecificPropType * findField(const DtString &fieldName)
Definition: rwPropertiesStructure.h:66
virtual const DtPropertyInterface * findPropertyInterface(const DtString &propertyName) const