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

List of all members.

Public Member Functions

virtual bool stream (buffer &a_buffer) const
virtual bool fill_basket (buffer &) const =0
 base_leaf (std::ostream &a_out, wroot::branch &a_branch, const std::string &a_name, const std::string &a_title)
virtual ~base_leaf ()
wroot::branchbranch ()
const std::string & name () const

Protected Member Functions

 base_leaf (const base_leaf &a_from)
base_leafoperator= (const base_leaf &)

Protected Attributes

std::ostream & m_out
wroot::branchm_branch
std::string m_name
std::string m_title
uint32 m_length
uint32 m_length_type

Detailed Description

Definition at line 21 of file base_leaf.


Constructor & Destructor Documentation

inlib::wroot::base_leaf::base_leaf ( std::ostream &  a_out,
wroot::branch a_branch,
const std::string &  a_name,
const std::string &  a_title 
) [inline]

Definition at line 53 of file base_leaf.

  :m_out(a_out)
  ,m_branch(a_branch)
  ,m_name(a_name)
  ,m_title(a_title)

  ,m_length(0)
  ,m_length_type(0)
  {
#ifdef INLIB_MEM
    mem::increment(s_class().c_str());
#endif
  }
virtual inlib::wroot::base_leaf::~base_leaf ( ) [inline, virtual]

Definition at line 69 of file base_leaf.

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

Definition at line 75 of file base_leaf.

  : ibo(a_from)
  ,m_out(a_from.m_out)
  ,m_branch(a_from.m_branch)
  {}

Member Function Documentation

wroot::branch& inlib::wroot::base_leaf::branch ( ) [inline]

Definition at line 82 of file base_leaf.

{return m_branch;}
virtual bool inlib::wroot::base_leaf::fill_basket ( buffer ) const [pure virtual]

Implemented in inlib::wroot::leaf< T >.

const std::string& inlib::wroot::base_leaf::name ( ) const [inline]

Definition at line 83 of file base_leaf.

{return m_name;}
base_leaf& inlib::wroot::base_leaf::operator= ( const base_leaf ) [inline, protected]

Definition at line 80 of file base_leaf.

{return *this;}
virtual bool inlib::wroot::base_leaf::stream ( buffer a_buffer) const [inline, virtual]

Implements inlib::wroot::ibo.

Reimplemented in inlib::wroot::leaf< T >.

Definition at line 31 of file base_leaf.

                                              {
    unsigned int c;
    if(!a_buffer.write_version(2,c)) return false;
    if(!Named_stream(a_buffer,m_name,m_title)) return false;
    if(!a_buffer.write(m_length)) return false;
    if(!a_buffer.write(m_length_type)) return false;
    uint32 fOffset = 0;
    if(!a_buffer.write(fOffset)) return false;
    bool fIsRange = false;
    if(!a_buffer.write(fIsRange)) return false;
    bool fIsUnsigned = false;
    if(!a_buffer.write(fIsUnsigned)) return false;

  //if(!a_buffer.write_object(m_leaf_count)) return false;
    if(!a_buffer.write(kNullTag())) return false;

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

Member Data Documentation

Definition at line 87 of file base_leaf.

Definition at line 91 of file base_leaf.

Definition at line 92 of file base_leaf.

std::string inlib::wroot::base_leaf::m_name [protected]

Definition at line 89 of file base_leaf.

std::ostream& inlib::wroot::base_leaf::m_out [protected]

Definition at line 86 of file base_leaf.

std::string inlib::wroot::base_leaf::m_title [protected]

Definition at line 90 of file base_leaf.


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