Puma Reference Manual Puma: Puma::CStrLiteral Class Reference



Puma::CStrLiteral Class Reference

String literal abstraction. More...

#include <Puma/CStrLiteral.h>

Inherits Puma::CExprValue.

List of all members.

Public Member Functions

 CStrLiteral (const char *s, unsigned long len, CTypeInfo *t)
 Constructor.
virtual ~CStrLiteral ()
 Destructor.
virtual void print (ostream &out) const
 Print the string on the given output stream.
const char * String () const
 Get the wide string.
unsigned long Length () const
 Get the length of the string.
CStrLiteralStrLiteral () const
 Get this.

Detailed Description

String literal abstraction.

Holds the string value, its length, and the string type.


Constructor & Destructor Documentation

Puma::CStrLiteral::CStrLiteral ( const char *  s,
unsigned long  len,
CTypeInfo t 
) [inline]

Constructor.

Parameters:
s The string array.
len The length of the string.
t The type of the string.
virtual Puma::CStrLiteral::~CStrLiteral (  )  [inline, virtual]

Destructor.

Frees the string.


Member Function Documentation

unsigned long Puma::CStrLiteral::Length (  )  const [inline]

Get the length of the string.

virtual void Puma::CStrLiteral::print ( ostream &  out  )  const [inline, virtual]

Print the string on the given output stream.

Parameters:
out The output stream.

Implements Puma::CExprValue.

const char* Puma::CStrLiteral::String (  )  const [inline]

Get the wide string.

CStrLiteral* Puma::CStrLiteral::StrLiteral (  )  const [inline, virtual]

Get this.

Reimplemented from Puma::CExprValue.




Puma Reference Manual. Created on 18 Sep 2009.