Logo
~Apps~
~Projects~
~Contact~


BTString Class Reference

string object in metainfo file More...

#include <BTString.h>

Inheritance diagram for BTString:

Inheritance graph
[legend]
Collaboration diagram for BTString:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 BTString ()
 ~BTString ()
char Type ()
void Show ()
std::string GetValue ()
void SetValue (const std::string &str)

Private Attributes

std::string m_value

Detailed Description

string object in metainfo file

File ......... BTString.h Published .... 2005-06-14 Author ....... grymse@alhem.net

Definition at line 31 of file BTString.h.


Constructor & Destructor Documentation

BTString::BTString (  )  [inline]

Definition at line 34 of file BTString.h.

00034 : BTObject(0) {}

BTString::~BTString (  )  [inline]

Definition at line 35 of file BTString.h.

00035 {}


Member Function Documentation

char BTString::Type (  )  [inline, virtual]

Implements BTObject.

Definition at line 36 of file BTString.h.

00036 { return 's'; }

void BTString::Show (  )  [inline, virtual]

Reimplemented from BTObject.

Definition at line 37 of file BTString.h.

References GetValue(), BTObject::printable(), and BTObject::Show().

00037                     {
00038                 BTObject::Show();
00039                 printf("'%s' ",printable(GetValue()).c_str());
00040         }

std::string BTString::GetValue (  )  [inline]

Definition at line 42 of file BTString.h.

References m_value.

Referenced by Show().

00042                              {
00043                 return m_value;
00044         }

void BTString::SetValue ( const std::string &  str  )  [inline]

Definition at line 45 of file BTString.h.

References m_value.

00045                                             {
00046                 m_value = str;
00047         }


Member Data Documentation

std::string BTString::m_value [private]

Definition at line 50 of file BTString.h.

Referenced by GetValue(), and SetValue().


The documentation for this class was generated from the following file:
Page, code, and content Copyright (C) 2006 by Anders Hedström
Generated on Mon Aug 29 20:21:47 2005 for C++ Sockets by  doxygen 1.4.4