g4tools  5.4.0
Public Member Functions | List of all members
tools::wroot::streamer_object Class Reference
Inheritance diagram for tools::wroot::streamer_object:
Inheritance graph
[legend]
Collaboration diagram for tools::wroot::streamer_object:
Collaboration graph
[legend]

Public Member Functions

virtual const std::string & store_cls () const
 
virtual bool stream (buffer &aBuffer) const
 
virtual streamer_elementcopy () const
 
 streamer_object (const std::string &aName, const std::string &aTitle, int aOffset, const std::string &aTypeName)
 
virtual ~streamer_object ()
 
 streamer_object (const streamer_object &a_from)
 
streamer_objectoperator= (const streamer_object &a_from)
 
- Public Member Functions inherited from tools::wroot::streamer_element
virtual void out (std::ostream &aOut) const
 
 streamer_element (const std::string &aName, const std::string &aTitle, int aOffset, int aType, const std::string &aTypeName)
 
virtual ~streamer_element ()
 
virtual void setArrayDimension (int aDimension)
 
virtual void setMaxIndex (int aDimension, int aMaximum)
 
virtual void fullName (std::string &a_s) const
 
- Public Member Functions inherited from tools::wroot::ibo
virtual ~ibo ()
 

Additional Inherited Members

- Protected Member Functions inherited from tools::wroot::streamer_element
 streamer_element (const streamer_element &a_from)
 
streamer_elementoperator= (const streamer_element &a_from)
 
- Protected Attributes inherited from tools::wroot::streamer_element
std::string fName
 
std::string fTitle
 
int fType
 
int fSize
 
int fArrayLength
 
int fArrayDim
 
int fMaxIndex [5]
 
int fOffset
 
std::string fTypeName
 element offset in class More...
 

Detailed Description

Definition at line 443 of file element.

Constructor & Destructor Documentation

◆ streamer_object() [1/2]

tools::wroot::streamer_object::streamer_object ( const std::string &  aName,
const std::string &  aTitle,
int  aOffset,
const std::string &  aTypeName 
)
inline

Definition at line 459 of file element.

460  :streamer_element(aName,aTitle,aOffset,0,aTypeName){
462  if (aName=="TObject") fType = streamer__info::TOBJECT;
463  if (aName=="TNamed") fType = streamer__info::TNAMED;
464  }

◆ ~streamer_object()

virtual tools::wroot::streamer_object::~streamer_object ( )
inlinevirtual

Definition at line 465 of file element.

465 {}

◆ streamer_object() [2/2]

tools::wroot::streamer_object::streamer_object ( const streamer_object a_from)
inline

Definition at line 467 of file element.

467 :ibo(a_from),streamer_element(a_from){}

Member Function Documentation

◆ copy()

virtual streamer_element* tools::wroot::streamer_object::copy ( ) const
inlinevirtual

Implements tools::wroot::streamer_element.

Definition at line 457 of file element.

457 {return new streamer_object(*this);}

◆ operator=()

streamer_object& tools::wroot::streamer_object::operator= ( const streamer_object a_from)
inline

Definition at line 468 of file element.

468  {
470  return *this;
471  }

◆ store_cls()

virtual const std::string& tools::wroot::streamer_object::store_cls ( ) const
inlinevirtual

Reimplemented from tools::wroot::streamer_element.

Definition at line 445 of file element.

445  {
446  static const std::string s_v("TStreamerObject");
447  return s_v;
448  }

◆ stream()

virtual bool tools::wroot::streamer_object::stream ( buffer aBuffer) const
inlinevirtual

Reimplemented from tools::wroot::streamer_element.

Definition at line 449 of file element.

449  {
450  unsigned int c;
451  if(!aBuffer.write_version(2,c)) return false;
452  if(!streamer_element::stream(aBuffer)) return false;
453  if(!aBuffer.set_byte_count(c)) return false;
454  return true;
455  }

The documentation for this class was generated from the following file:
tools::wroot::streamer__info::TNAMED
@ TNAMED
Definition: element:39
tools::wroot::streamer_element::stream
virtual bool stream(buffer &aBuffer) const
Definition: element:64
tools::wroot::streamer__info::OBJECT
@ OBJECT
Definition: element:33
tools::wroot::streamer_element::fType
int fType
Definition: element:154
tools::wroot::streamer_element::streamer_element
streamer_element(const std::string &aName, const std::string &aTitle, int aOffset, int aType, const std::string &aTypeName)
Definition: element:88
tools::wroot::streamer__info::TOBJECT
@ TOBJECT
Definition: element:38
tools::wroot::streamer_object::streamer_object
streamer_object(const std::string &aName, const std::string &aTitle, int aOffset, const std::string &aTypeName)
Definition: element:459
tools::wroot::streamer_element::operator=
streamer_element & operator=(const streamer_element &a_from)
Definition: element:116