YCPSymbolRep Class Reference

YCP symbol. Symbols appear as components of pathes, as names of structure elements and as term names. The ASCII representation of a symbol is a letter or underscore followed by an arbitrary number of letters, digits and underscores. More...

#include <YCPSymbol.h>

Inheritance diagram for YCPSymbolRep:

YCPValueRep YCPElementRep List of all members.

Public Member Functions

string symbol () const
const char * symbol_cstr () const
YCPOrder compare (const YCPSymbol &v) const
string toString () const
std::ostream & toStream (std::ostream &str) const
YCPValueType valuetype () const

Protected Member Functions

 YCPSymbolRep (const char *s)
 YCPSymbolRep (string s)

Private Attributes

Ustring v

Friends

class YCPSymbol

Detailed Description

YCP symbol. Symbols appear as components of pathes, as names of structure elements and as term names. The ASCII representation of a symbol is a letter or underscore followed by an arbitrary number of letters, digits and underscores.

YCP Syntax: A letter or underscore followed by an arbitrary number of digits, letters and underscores.

hElP   _8   a_45


Constructor & Destructor Documentation

YCPSymbolRep::YCPSymbolRep const char *  s  )  [protected]
 

Creates new symbol from a const char *pointer.

YCPSymbolRep::YCPSymbolRep string  s  )  [protected]
 

Creates a new symbol from a string.


Member Function Documentation

YCPOrder YCPSymbolRep::compare const YCPSymbol v  )  const
 

Compares two YCPSymbols for equality, greaterness or smallerness. Symbols are compared by their names interpreted as strings.

Parameters:
v value to compare against
Returns:
YO_LESS, if this is smaller than v, YO_EQUAL, if this is equal to v, YO_GREATER, if this is greater to v

string YCPSymbolRep::symbol  )  const
 

Returns the symbol's string.

const char * YCPSymbolRep::symbol_cstr  )  const
 

Returns the symbol's string as const char * pointer.

std::ostream & YCPSymbolRep::toStream std::ostream &  str  )  const [virtual]
 

Output value as bytecode to stream

Implements YCPElementRep.

string YCPSymbolRep::toString  )  const [virtual]
 

Returns the ASCII representation of the symbol.

Implements YCPElementRep.

YCPValueType YCPSymbolRep::valuetype  )  const [virtual]
 

Returns YT_SYMBOL. See YCPValueRep::valuetype.

Implements YCPValueRep.


Friends And Related Function Documentation

friend class YCPSymbol [friend]
 


Member Data Documentation

Ustring YCPSymbolRep::v [private]
 


The documentation for this class was generated from the following files:
Generated on Fri Jun 16 18:07:47 2006 for yast2-core by  doxygen 1.4.6