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

Public Member Functions

virtual const std::string & store_cls () const
 
virtual bool stream (buffer &aBuffer) const
 
virtual streamer_elementcopy () const
 
 streamer_base (const std::string &aName, const std::string &aTitle, int aOffset, int aBaseVersion)
 
virtual ~streamer_base ()
 
 streamer_base (const streamer_base &a_from)
 
streamer_baseoperator= (const streamer_base &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 ()
 

Protected Attributes

int fBaseVersion
 
- 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...
 

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)
 

Detailed Description

Definition at line 164 of file element.

Constructor & Destructor Documentation

◆ streamer_base() [1/2]

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

Definition at line 181 of file element.

182  :streamer_element(aName,aTitle,aOffset,streamer__info::BASE,"BASE")
183  ,fBaseVersion(aBaseVersion)
184  {
185  if (aName=="TObject") fType = streamer__info::TOBJECT;
186  if (aName=="TNamed") fType = streamer__info::TNAMED;
187  }

◆ ~streamer_base()

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

Definition at line 188 of file element.

188 {}

◆ streamer_base() [2/2]

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

Definition at line 190 of file element.

191  :ibo(a_from)
192  ,streamer_element(a_from)
193  ,fBaseVersion(a_from.fBaseVersion)
194  {}

Member Function Documentation

◆ copy()

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

Implements tools::wroot::streamer_element.

Definition at line 179 of file element.

179 {return new streamer_base(*this);}

◆ operator=()

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

Definition at line 195 of file element.

195  {
197  fBaseVersion = a_from.fBaseVersion;
198  return *this;
199  }

◆ store_cls()

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

Reimplemented from tools::wroot::streamer_element.

Definition at line 166 of file element.

166  {
167  static const std::string s_v("TStreamerBase");
168  return s_v;
169  }

◆ stream()

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

Reimplemented from tools::wroot::streamer_element.

Definition at line 170 of file element.

170  {
171  unsigned int c;
172  if(!aBuffer.write_version(3,c)) return false;
173  if(!streamer_element::stream(aBuffer)) return false;
174  if(!aBuffer.write(fBaseVersion)) return false;
175  if(!aBuffer.set_byte_count(c)) return false;
176  return true;
177  }

Member Data Documentation

◆ fBaseVersion

int tools::wroot::streamer_base::fBaseVersion
protected

Definition at line 201 of file element.


The documentation for this class was generated from the following file:
tools::wroot::streamer_base::fBaseVersion
int fBaseVersion
Definition: element:201
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_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_base::streamer_base
streamer_base(const std::string &aName, const std::string &aTitle, int aOffset, int aBaseVersion)
Definition: element:181
tools::wroot::streamer__info::BASE
@ BASE
Definition: element:17
tools::wroot::streamer__info::TOBJECT
@ TOBJECT
Definition: element:38
tools::wroot::streamer_element::operator=
streamer_element & operator=(const streamer_element &a_from)
Definition: element:116