Puma Reference Manual | Puma: Puma::CWStrLiteral Class Reference |
Wide string literal abstraction. More...
#include <Puma/CWStrLiteral.h>
Inherits Puma::CExprValue.
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. |
Wide string literal abstraction.
Holds the wide string value, its length, and the string type.
Puma::CWStrLiteral::CWStrLiteral | ( | const wchar_t * | s, | |
unsigned long | len, | |||
CTypeInfo * | t | |||
) | [inline] |
Constructor.
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.
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.
out | The 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.