Puma Reference Manual Puma: Puma::CWStrLiteral Class Reference



Puma::CWStrLiteral Class Reference

Wide string literal abstraction. More...

#include <Puma/CWStrLiteral.h>

Inheritance diagram for Puma::CWStrLiteral:
Inheritance graph

List of all members.

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.
CWStrLiteral * WStrLiteral () const
 Get this.

Detailed Description

Wide string literal abstraction.

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


Constructor & Destructor Documentation

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

Constructor.

Parameters:
sThe wide string array.
lenThe length of the string.
tThe type of the string.
virtual Puma::CWStrLiteral::~CWStrLiteral ( ) [inline, virtual]

Destructor.

Frees the string.


Member Function Documentation

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

Get the length of the string.

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

Print the wide string on the given output stream.

Parameters:
outThe output stream.

Implements Puma::CExprValue.

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

Get the wide string.

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

Get this.

Reimplemented from Puma::CExprValue.