CHROMA
Public Member Functions | Private Attributes | List of all members
Chroma::NamedObject< T > Class Template Reference

Type specific named object. More...

#include <named_obj.h>

Inheritance diagram for Chroma::NamedObject< T >:
Chroma::NamedObjectBase

Public Member Functions

 NamedObject ()
 Constructor. More...
 
template<typename P1 >
 NamedObject (const P1 &p1)
 
 ~NamedObject ()
 Destructor. More...
 
void setFileXML (XMLReader &xml)
 Setter. More...
 
void setFileXML (XMLBufferWriter &xml)
 Setter. More...
 
void setRecordXML (XMLReader &xml)
 Setter. More...
 
void setRecordXML (XMLBufferWriter &xml)
 Setter. More...
 
void getFileXML (XMLReader &xml) const
 Getter. More...
 
void getFileXML (XMLBufferWriter &xml) const
 Getter. More...
 
void getRecordXML (XMLReader &xml) const
 Getter. More...
 
void getRecordXML (XMLBufferWriter &xml) const
 Getter. More...
 
virtual TgetData ()
 Mutable data ref. More...
 
virtual const TgetData () const
 Const data ref. More...
 
- Public Member Functions inherited from Chroma::NamedObjectBase
 NamedObjectBase ()
 
virtual ~NamedObjectBase ()
 

Private Attributes

Handle< Tdata
 
std::string file_xml
 
std::string record_xml
 

Detailed Description

template<typename T>
class Chroma::NamedObject< T >

Type specific named object.

Definition at line 66 of file named_obj.h.

Constructor & Destructor Documentation

◆ NamedObject() [1/2]

template<typename T >
Chroma::NamedObject< T >::NamedObject ( )
inline

Constructor.

Definition at line 70 of file named_obj.h.

◆ NamedObject() [2/2]

template<typename T >
template<typename P1 >
Chroma::NamedObject< T >::NamedObject ( const P1 &  p1)
inline

Definition at line 73 of file named_obj.h.

◆ ~NamedObject()

template<typename T >
Chroma::NamedObject< T >::~NamedObject ( )
inline

Destructor.

Definition at line 76 of file named_obj.h.

Member Function Documentation

◆ getData() [1/2]

template<typename T >
virtual T& Chroma::NamedObject< T >::getData ( )
inlinevirtual

Mutable data ref.

Definition at line 133 of file named_obj.h.

References Chroma::NamedObject< T >::data.

◆ getData() [2/2]

template<typename T >
virtual const T& Chroma::NamedObject< T >::getData ( ) const
inlinevirtual

Const data ref.

Definition at line 138 of file named_obj.h.

References Chroma::NamedObject< T >::data.

◆ getFileXML() [1/2]

template<typename T >
void Chroma::NamedObject< T >::getFileXML ( XMLBufferWriter &  xml) const
inlinevirtual

Getter.

Implements Chroma::NamedObjectBase.

Definition at line 114 of file named_obj.h.

References Chroma::NamedObject< T >::file_xml.

◆ getFileXML() [2/2]

template<typename T >
void Chroma::NamedObject< T >::getFileXML ( XMLReader &  xml) const
inlinevirtual

Getter.

Implements Chroma::NamedObjectBase.

Definition at line 107 of file named_obj.h.

References Chroma::NamedObject< T >::file_xml.

◆ getRecordXML() [1/2]

template<typename T >
void Chroma::NamedObject< T >::getRecordXML ( XMLBufferWriter &  xml) const
inlinevirtual

Getter.

Implements Chroma::NamedObjectBase.

Definition at line 127 of file named_obj.h.

References Chroma::NamedObject< T >::record_xml.

◆ getRecordXML() [2/2]

template<typename T >
void Chroma::NamedObject< T >::getRecordXML ( XMLReader &  xml) const
inlinevirtual

Getter.

Implements Chroma::NamedObjectBase.

Definition at line 120 of file named_obj.h.

References Chroma::NamedObject< T >::record_xml.

◆ setFileXML() [1/2]

template<typename T >
void Chroma::NamedObject< T >::setFileXML ( XMLBufferWriter &  xml)
inlinevirtual

Setter.

Implements Chroma::NamedObjectBase.

Definition at line 87 of file named_obj.h.

References Chroma::NamedObject< T >::file_xml.

◆ setFileXML() [2/2]

template<typename T >
void Chroma::NamedObject< T >::setFileXML ( XMLReader &  xml)
inlinevirtual

Setter.

Implements Chroma::NamedObjectBase.

Definition at line 79 of file named_obj.h.

References Chroma::NamedObject< T >::file_xml.

◆ setRecordXML() [1/2]

template<typename T >
void Chroma::NamedObject< T >::setRecordXML ( XMLBufferWriter &  xml)
inlinevirtual

Setter.

Implements Chroma::NamedObjectBase.

Definition at line 101 of file named_obj.h.

References Chroma::NamedObject< T >::record_xml.

◆ setRecordXML() [2/2]

template<typename T >
void Chroma::NamedObject< T >::setRecordXML ( XMLReader &  xml)
inlinevirtual

Setter.

Implements Chroma::NamedObjectBase.

Definition at line 93 of file named_obj.h.

References Chroma::NamedObject< T >::record_xml.

Member Data Documentation

◆ data

template<typename T >
Handle<T> Chroma::NamedObject< T >::data
private

Definition at line 143 of file named_obj.h.

Referenced by Chroma::NamedObject< T >::getData().

◆ file_xml

template<typename T >
std::string Chroma::NamedObject< T >::file_xml
private

◆ record_xml

template<typename T >
std::string Chroma::NamedObject< T >::record_xml
private

The documentation for this class was generated from the following file: