vValue::Expr::Core::String Class Reference

Stores a string (tString) value. More...

#include <vCore.h>

Inheritance diagram for vValue::Expr::Core::String:

Inheritance graph
[legend]
Collaboration diagram for vValue::Expr::Core::String:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 String (tString value)
 Constructor.
 String (char const *value)
 Constructor.
 String (Base const &other)
 Copy constructor.
Basecopy (void) const
virtual ~String ()
virtual Variant GetValue (void) const
 Returns the value in its native format.
virtual tString GetString (Base const *other=0) const
bool operator== (Base const &other) const
 compares two values
bool operator!= (Base const &other) const
 compares two values
bool operator>= (Base const &other) const
 compares two values
bool operator<= (Base const &other) const
 compares two values
bool operator> (Base const &other) const
 compares two values
bool operator< (Base const &other) const
 compares two values

Private Attributes

tString m_value
 The stored value.


Detailed Description

Stores a string (tString) value.

Definition at line 259 of file vCore.h.


Constructor & Destructor Documentation

vValue::Expr::Core::String::String ( tString  value  ) 

Constructor.

Stores the given string inside the new class

Parameters:
value the string to be used

Definition at line 184 of file vCore.cpp.

Referenced by copy().

00184                            :
00185         m_value(value)
00186 { }

Here is the caller graph for this function:

vValue::Expr::Core::String::String ( char const *  value  ) 

Constructor.

Stores the given string inside the new class

Parameters:
value the string to be used

Definition at line 190 of file vCore.cpp.

00190                                :
00191         m_value(tString(value))
00192 { }

vValue::Expr::Core::String::String ( Base const &  other  ) 

Copy constructor.

If the other value is not a String object this constructor will only copy the current value and drop all other information.

Parameters:
other another Base or derived class to copy from

Definition at line 196 of file vCore.cpp.

00196                                :
00197         Base(other),
00198         m_value(other.GetString())
00199 { }

virtual vValue::Expr::Core::String::~String (  )  [inline, virtual]

Definition at line 267 of file vCore.h.

00267 { };


Member Function Documentation

Base * vValue::Expr::Core::String::copy ( void   )  const [virtual]

Overwritten copy function

Returns:
a new copy of the current object

Reimplemented from vValue::Expr::Core::Base.

Definition at line 203 of file vCore.cpp.

References String().

00203                              {
00204     return new String(*this);
00205 }

Here is the call graph for this function:

Variant vValue::Expr::Core::String::GetValue ( void   )  const [virtual]

Returns the value in its native format.

Reimplemented from vValue::Expr::Core::Base.

Definition at line 207 of file vCore.cpp.

References GetString().

00207                                {
00208     return GetString();
00209 }

Here is the call graph for this function:

tString vValue::Expr::Core::String::GetString ( Base const *  other = 0  )  const [virtual]

Returns the string stored inside the object

Returns:
a string containing the current value

Reimplemented from vValue::Expr::Core::Base.

Definition at line 213 of file vCore.cpp.

References m_value, and vValue::Expr::Core::Base::Output().

Referenced by GetValue().

00213                                                  {
00214     return Output(m_value, other);
00215 }

Here is the call graph for this function:

Here is the caller graph for this function:

bool vValue::Expr::Core::String::operator== ( Base const &  other  )  const [virtual]

compares two values

Reimplemented from vValue::Expr::Core::Base.

Definition at line 217 of file vCore.cpp.

References m_value.

00217 { return m_value == static_cast<tString>(other); }

bool vValue::Expr::Core::String::operator!= ( Base const &  other  )  const [virtual]

compares two values

Reimplemented from vValue::Expr::Core::Base.

Definition at line 218 of file vCore.cpp.

References m_value.

00218 { return m_value !=  static_cast<tString>(other); }

bool vValue::Expr::Core::String::operator>= ( Base const &  other  )  const [virtual]

compares two values

Reimplemented from vValue::Expr::Core::Base.

Definition at line 219 of file vCore.cpp.

References m_value.

00219 { return m_value >=  static_cast<tString>(other); }

bool vValue::Expr::Core::String::operator<= ( Base const &  other  )  const [virtual]

compares two values

Reimplemented from vValue::Expr::Core::Base.

Definition at line 220 of file vCore.cpp.

00220 { return m_value <=  static_cast<tString>(other); }

bool vValue::Expr::Core::String::operator> ( Base const &  other  )  const [virtual]

compares two values

Reimplemented from vValue::Expr::Core::Base.

Definition at line 221 of file vCore.cpp.

References m_value.

00221 { return m_value >   static_cast<tString>(other); }

bool vValue::Expr::Core::String::operator< ( Base const &  other  )  const [virtual]

compares two values

Reimplemented from vValue::Expr::Core::Base.

Definition at line 222 of file vCore.cpp.

00222 { return m_value <   static_cast<tString>(other); }


Member Data Documentation

tString vValue::Expr::Core::String::m_value [private]

The stored value.

Definition at line 260 of file vCore.h.

Referenced by GetString(), operator!=(), operator==(), operator>(), and operator>=().


The documentation for this class was generated from the following files:
Generated on Sun Mar 16 00:05:51 2008 for Armagetron Advanced by  doxygen 1.5.4