Puma Reference Manual Puma: Puma::CWStrLiteral Class Reference



Puma::CWStrLiteral Class Reference

#include <Puma/CWStrLiteral.h>

Inheritance diagram for Puma::CWStrLiteral:

Inheritance graph

List of all members.


Detailed Description

Wide string literal abstraction.

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

Public Member Functions

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


Constructor & Destructor Documentation

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

Constructor.

Parameters:
s The wide string array.
len The length of the string.
t The type of the string.

virtual Puma::CWStrLiteral::~CWStrLiteral (  )  [inline, virtual]

Destructor.

Frees the string.


Member Function Documentation

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

Print the wide string on the given output stream.

Parameters:
out The output stream.

Implements Puma::CExprValue.

const wchar_t* Puma::CWStrLiteral::String (  )  const [inline]

Get the wide string.

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

Get the length of the string.

CWStrLiteral* Puma::CWStrLiteral::WStrLiteral (  )  const [inline, virtual]

Get this.

Reimplemented from Puma::CExprValue.




Puma Reference Manual. Created on 5 Nov 2008.