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

Public Member Functions

virtual void * cast (cid a_class) const
 
virtual cid id_cls () const
 
 leaf_string (std::ostream &a_out, const std::string &a_name)
 
virtual ~leaf_string ()
 
void fill (const std::string &a_value)
 
- Public Member Functions inherited from tools::wroot::leaf_string_ref
virtual const std::string & store_cls () const
 
virtual bool stream (buffer &a_buffer) const
 
virtual bool fill_buffer (buffer &a_buffer) const
 
 leaf_string_ref (std::ostream &a_out, const std::string &a_name, const std::string &a_ref)
 
virtual ~leaf_string_ref ()
 
int get_max () const
 
void set_max (int a_value)
 
const std::string & variable () const
 
std::string & variable ()
 
- Public Member Functions inherited from tools::wroot::base_leaf
 base_leaf (std::ostream &a_out, const std::string &a_name, const std::string &a_title)
 
virtual ~base_leaf ()
 
const std::string & name () const
 
void set_title (const std::string &a_value)
 
uint32 length () const
 
void set_length (uint32 a_value)
 
void set_is_range (bool a_value)
 
- Public Member Functions inherited from tools::wroot::ibo
virtual ~ibo ()
 

Static Public Member Functions

static cid id_class ()
 
- Static Public Member Functions inherited from tools::wroot::leaf_string_ref
static cid id_class ()
 
- Static Public Member Functions inherited from tools::wroot::base_leaf
static cid id_class ()
 

Protected Member Functions

 leaf_string (const leaf_string &a_from)
 
leaf_stringoperator= (const leaf_string &)
 
- Protected Member Functions inherited from tools::wroot::leaf_string_ref
 leaf_string_ref (const leaf_string_ref &a_from)
 
leaf_string_refoperator= (const leaf_string_ref &)
 
- Protected Member Functions inherited from tools::wroot::base_leaf
 base_leaf (const base_leaf &a_from)
 
base_leafoperator= (const base_leaf &)
 

Protected Attributes

std::string m_value
 
- Protected Attributes inherited from tools::wroot::leaf_string_ref
int m_min
 
int m_max
 
const std::string & m_ref
 
- Protected Attributes inherited from tools::wroot::base_leaf
std::ostream & m_out
 
std::string m_name
 
std::string m_title
 
uint32 m_length
 
uint32 m_length_type
 
ibom_leaf_count
 
bool m_is_range
 

Detailed Description

Definition at line 188 of file leaf.

Constructor & Destructor Documentation

◆ leaf_string() [1/2]

tools::wroot::leaf_string::leaf_string ( std::ostream &  a_out,
const std::string &  a_name 
)
inline

Definition at line 198 of file leaf.

199  :parent(a_out,a_name,m_value)
200  {}

◆ ~leaf_string()

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

Definition at line 201 of file leaf.

201 {}

◆ leaf_string() [2/2]

tools::wroot::leaf_string::leaf_string ( const leaf_string a_from)
inlineprotected

Definition at line 203 of file leaf.

203 :ibo(a_from),parent(a_from){}

Member Function Documentation

◆ cast()

virtual void* tools::wroot::leaf_string::cast ( cid  a_class) const
inlinevirtual

Reimplemented from tools::wroot::leaf_string_ref.

Definition at line 192 of file leaf.

192  {
193  if(void* p = cmp_cast<leaf_string>(this,a_class)) {return p;}
194  return parent::cast(a_class);
195  }

◆ fill()

void tools::wroot::leaf_string::fill ( const std::string &  a_value)
inline

Definition at line 206 of file leaf.

206 {m_value = a_value;}

◆ id_class()

static cid tools::wroot::leaf_string::id_class ( )
inlinestatic

Definition at line 191 of file leaf.

191 {return leaf_string_cid();}

◆ id_cls()

virtual cid tools::wroot::leaf_string::id_cls ( ) const
inlinevirtual

Reimplemented from tools::wroot::leaf_string_ref.

Definition at line 196 of file leaf.

196 {return id_class();}

◆ operator=()

leaf_string& tools::wroot::leaf_string::operator= ( const leaf_string )
inlineprotected

Definition at line 204 of file leaf.

204 {return *this;}

Member Data Documentation

◆ m_value

std::string tools::wroot::leaf_string::m_value
protected

Definition at line 208 of file leaf.


The documentation for this class was generated from the following file:
tools::wroot::leaf_string::id_class
static cid id_class()
Definition: leaf:191
tools::wroot::leaf_string_cid
cid leaf_string_cid()
Definition: cids:16
tools::wroot::leaf_string_ref::cast
virtual void * cast(cid a_class) const
Definition: leaf:133
tools::wroot::leaf_string::m_value
std::string m_value
Definition: leaf:208