Aegis  4.25.D505
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
introspector_nstring Class Reference

#include <nstring.h>

Inheritance diagram for introspector_nstring:
introspector

Public Member Functions

virtual ~introspector_nstring ()

Static Public Member Functions

static pointer create (nstring &where)
static void write (const output::pointer &op, const char *name, const nstring &value, bool show_if_default=false)
static void write_xml (const output::pointer &op, const char *name, const nstring &value, bool show_if_default=false)

Protected Member Functions

void string (const nstring &text)
nstring get_name () const

Private Member Functions

 introspector_nstring (nstring &where)
 introspector_nstring ()
 introspector_nstring (const introspector_nstring &)
introspector_nstringoperator= (const introspector_nstring &)

Private Attributes

nstringwhere

Detailed Description

The introspector_nstring class is used to represent the manipulations required to manage nstring values by the meta-data parser.

Definition at line 29 of file nstring.h.


Constructor & Destructor Documentation

The destructor.

The constructor. It is private on purpose, use the create class method instead.

Parameters:
whereThe location of the string_ty* value to be manipulated.

The default constructor. Do not use.

The copy constructor. Do not use.


Member Function Documentation

static pointer introspector_nstring::create ( nstring where) [static]

The create class method is used to create new dynamically allocated instances of this class.

Parameters:
whereThe location of the string_ty* value to be manipulated.
nstring introspector_nstring::get_name ( ) const [protected, virtual]

The get_name mathod is used to get the name of the type of value the introspector is managing. Used in error messages.

Implements introspector.

introspector_nstring& introspector_nstring::operator= ( const introspector_nstring ) [private]

The assignment operator. Do not use.

void introspector_nstring::string ( const nstring text) [protected, virtual]

The string method is called by the parser when a string value is seen.

Parameters:
textThe value of the string constant.

Reimplemented from introspector.

static void introspector_nstring::write ( const output::pointer op,
const char *  name,
const nstring value,
bool  show_if_default = false 
) [static]

The write class method is used to write out a string value in the format the meta-data parser can read back in.

Parameters:
opThe output sink to send the text to.
nameThe name of the field to be written.
valueThe value of the field to be written.
show_if_defaultwhether or not to show the variable even if it is the empty string.
static void introspector_nstring::write_xml ( const output::pointer op,
const char *  name,
const nstring value,
bool  show_if_default = false 
) [static]

The write_xml class method is used to write out a string value in XML format.

Parameters:
opThe output sink to send the text to.
nameThe name of the field to be written.
valueThe value of the field to be written.
show_if_defaultwhether or not to show the variable even if it is the empty string.

Field Documentation

The where instance variable is ued to remember where to put the value, once parsed.

Definition at line 102 of file nstring.h.


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