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

Public Member Functions

virtual const std::string & store_cls () const
 
virtual bool stream (buffer &aBuffer) const
 
virtual streamer_elementcopy () const
 
 streamer_string (const std::string &aName, const std::string &aTitle, int aOffset)
 
 streamer_string (int &aOffset, const std::string &aName, const std::string &aTitle)
 
virtual ~streamer_string ()
 
 streamer_string (const streamer_string &a_from)
 
streamer_stringoperator= (const streamer_string &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 412 of file element.

Constructor & Destructor Documentation

◆ streamer_string() [1/3]

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

Definition at line 428 of file element.

429  :streamer_element(aName,aTitle,aOffset,streamer__info::_TSTRING,"TString")
430  {}

◆ streamer_string() [2/3]

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

Definition at line 431 of file element.

432  :streamer_element(aName,aTitle,aOffset,streamer__info::_TSTRING,"TString")
433  {
434  aOffset += streamer__info::size_TString;
435  }

◆ ~streamer_string()

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

Definition at line 436 of file element.

436 {}

◆ streamer_string() [3/3]

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

Definition at line 438 of file element.

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

Member Function Documentation

◆ copy()

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

Implements tools::wroot::streamer_element.

Definition at line 426 of file element.

426 {return new streamer_string(*this);}

◆ operator=()

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

Definition at line 439 of file element.

439 {streamer_element::operator=(a_from);return *this;}

◆ store_cls()

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

Reimplemented from tools::wroot::streamer_element.

Definition at line 414 of file element.

414  {
415  static const std::string s_v("TStreamerString");
416  return s_v;
417  }

◆ stream()

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

Reimplemented from tools::wroot::streamer_element.

Definition at line 418 of file element.

418  {
419  unsigned int c;
420  if(!aBuffer.write_version(2,c)) return false;
421  if(!streamer_element::stream(aBuffer)) return false;
422  if(!aBuffer.set_byte_count(c)) return false;
423  return true;
424  }

The documentation for this class was generated from the following file:
tools::wroot::streamer__info::size_TString
const int size_TString
Definition: element:50
tools::wroot::streamer_element::stream
virtual bool stream(buffer &aBuffer) const
Definition: element:64
tools::wroot::streamer__info::_TSTRING
@ _TSTRING
Definition: element:37
tools::wroot::streamer_string::streamer_string
streamer_string(const std::string &aName, const std::string &aTitle, int aOffset)
Definition: element:428
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_element::operator=
streamer_element & operator=(const streamer_element &a_from)
Definition: element:116