inlib  1.2.0
Public Member Functions | Protected Member Functions | Protected Attributes
inlib::wroot::StreamerInfo Class Reference
Inheritance diagram for inlib::wroot::StreamerInfo:
Inheritance graph
[legend]
Collaboration diagram for inlib::wroot::StreamerInfo:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual const std::string & store_cls () const
virtual bool stream (buffer &a_buffer) const
virtual void out (std::ostream &a_out) const
 StreamerInfo (const std::string &a_cls_store_name, int a_cls_vers, unsigned int a_cls_check_sum)
virtual ~StreamerInfo ()
void add (streamer_element *a_elem)

Protected Member Functions

 StreamerInfo (const StreamerInfo &a_from)
StreamerInfooperator= (const StreamerInfo &a_from)

Protected Attributes

std::string fName
std::string fTitle
unsigned int fCheckSum
int fStreamedClassVersion
ObjArray< streamer_elementfElements

Detailed Description

Definition at line 21 of file info.


Constructor & Destructor Documentation

inlib::wroot::StreamerInfo::StreamerInfo ( const std::string &  a_cls_store_name,
int  a_cls_vers,
unsigned int  a_cls_check_sum 
) [inline]

Definition at line 57 of file info.

  :fName(a_cls_store_name)
  ,fTitle("")
  ,fCheckSum(a_cls_check_sum)
  ,fStreamedClassVersion(a_cls_vers)
  {
#ifdef INLIB_MEM
    mem::increment(s_class().c_str());
#endif
  }
virtual inlib::wroot::StreamerInfo::~StreamerInfo ( ) [inline, virtual]

Definition at line 69 of file info.

                         {
#ifdef INLIB_MEM
    mem::decrement(s_class().c_str());
#endif
  }
inlib::wroot::StreamerInfo::StreamerInfo ( const StreamerInfo a_from) [inline, protected]

Definition at line 75 of file info.

  : ibo(a_from)
  ,fName(a_from.fName)
  ,fTitle(a_from.fName)
  ,fCheckSum(a_from.fCheckSum)
  ,fStreamedClassVersion(a_from.fStreamedClassVersion)
  ,fElements(a_from.fElements)
  {
#ifdef INLIB_MEM
    mem::increment(s_class().c_str());
#endif
  }

Member Function Documentation

void inlib::wroot::StreamerInfo::add ( streamer_element a_elem) [inline]

Definition at line 96 of file info.

{fElements.push_back(a_elem);}
StreamerInfo& inlib::wroot::StreamerInfo::operator= ( const StreamerInfo a_from) [inline, protected]

Definition at line 87 of file info.

                                                     {
    fName = a_from.fName;
    fTitle = a_from.fName;
    fCheckSum = a_from.fCheckSum;
    fStreamedClassVersion = a_from.fStreamedClassVersion;
    fElements = a_from.fElements;
    return *this;
  }  
virtual void inlib::wroot::StreamerInfo::out ( std::ostream &  a_out) const [inline, virtual]

Definition at line 47 of file info.

                                            {
    a_out << "StreamerInfo for class :" 
          << " " << fName << ", version=" << fStreamedClassVersion
          << std::endl;
    std::vector<streamer_element*>::const_iterator it;
    for(it=fElements.begin();it!=fElements.end();++it) { 
      (*it)->out(a_out);
    }
  }
virtual const std::string& inlib::wroot::StreamerInfo::store_cls ( ) const [inline, virtual]

Implements inlib::wroot::ibo.

Definition at line 27 of file info.

                                             {
    static const std::string s_v("TStreamerInfo");
    return s_v;
  }
virtual bool inlib::wroot::StreamerInfo::stream ( buffer a_buffer) const [inline, virtual]

Implements inlib::wroot::ibo.

Definition at line 31 of file info.

                                              {
    unsigned int c;
    if(!a_buffer.write_version(2,c)) return false;

    if(!Named_stream(a_buffer,fName,fTitle)) return false;
    if(!a_buffer.write(fCheckSum)) return false;
    if(!a_buffer.write(fStreamedClassVersion)) return false;

    //ObjArray
    if(!a_buffer.write_object(fElements)) return false;

    if(!a_buffer.set_byte_count(c)) return false;

    return true;
  }

Member Data Documentation

unsigned int inlib::wroot::StreamerInfo::fCheckSum [protected]

Definition at line 101 of file info.

Definition at line 104 of file info.

std::string inlib::wroot::StreamerInfo::fName [protected]

Definition at line 98 of file info.

Definition at line 102 of file info.

std::string inlib::wroot::StreamerInfo::fTitle [protected]

Definition at line 99 of file info.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines