Nemiver  0.3
Public Member Functions | List of all members
nemiver::Var Class Reference

#include <nmv-var.h>

Inheritance diagram for nemiver::Var:
nemiver::common::Object

Public Member Functions

 Var (const UString &a_name, const UString &a_value, const UString &a_type)
 
 Var (const UString &a_name)
 
 Var ()
 
const list< VarSafePtr > & members () const
 
void append (const VarSafePtr &a_var)
 
const UStringname () const
 
void name (const UString &a_name)
 
const UStringvalue () const
 
void value (const UString &a_value)
 
const UStringtype () const
 
void type (const UString &a_type)
 
Varparent () const
 
void parent (Var *a_parent)
 
void to_string (UString &a_str, bool a_show_var_name=false, const UString &a_indent_str="") const
 
- Public Member Functions inherited from nemiver::common::Object
 Object ()
 
 Object (Object const &)
 
Objectoperator= (Object const &)
 
virtual ~Object ()
 
void ref ()
 
void unref ()
 
void enable_refcount (bool a_enabled=true)
 
bool is_refcount_enabled () const
 
long get_refcount () const
 
void attach_object (const UString &a_key, const Object *a_object)
 
bool get_attached_object (const UString &a_key, const Object *&a_object)
 

Additional Inherited Members

- Protected Attributes inherited from nemiver::common::Object
SafePtr< ObjectPrivm_priv
 

Constructor & Destructor Documentation

◆ Var() [1/3]

nemiver::Var::Var ( const UString a_name,
const UString a_value,
const UString a_type 
)
inline

◆ Var() [2/3]

nemiver::Var::Var ( const UString a_name)
inline

◆ Var() [3/3]

nemiver::Var::Var ( )
inline

Member Function Documentation

◆ append()

void nemiver::Var::append ( const VarSafePtr a_var)
inline

References parent().

◆ members()

const list<VarSafePtr>& nemiver::Var::members ( ) const
inline

◆ name() [1/2]

const UString& nemiver::Var::name ( ) const
inline

◆ name() [2/2]

void nemiver::Var::name ( const UString a_name)
inline

◆ parent() [1/2]

Var* nemiver::Var::parent ( ) const
inline

Referenced by append().

◆ parent() [2/2]

void nemiver::Var::parent ( Var a_parent)
inline

◆ to_string()

void nemiver::Var::to_string ( UString a_str,
bool  a_show_var_name = false,
const UString a_indent_str = "" 
) const
inline

◆ type() [1/2]

const UString& nemiver::Var::type ( ) const
inline

◆ type() [2/2]

void nemiver::Var::type ( const UString a_type)
inline

◆ value() [1/2]

const UString& nemiver::Var::value ( ) const
inline

◆ value() [2/2]

void nemiver::Var::value ( const UString a_value)
inline

The documentation for this class was generated from the following file: