ICG 2
Electric Boogaloo
Public Member Functions | List of all members
StringValue Class Reference

#include <StringValue.hpp>

Inheritance diagram for StringValue:
Value

Public Member Functions

 StringValue (const char *value)
 
 StringValue (std::string value)
 
void print (std::ostream &s) const override
 
std::string toString () const override
 
ValueType getValueType () const override
 Get the Value Type object. More...
 
std::string getRawString () const
 
std::string getEscapedString () const
 
- Public Member Functions inherited from Value
virtual ~Value ()
 

Additional Inherited Members

- Public Types inherited from Value
enum  ValueType { STRING , INTEGER , FLOATING_POINT , POINTER }
 

Constructor & Destructor Documentation

◆ StringValue() [1/2]

StringValue::StringValue ( const char *  value)

Constructor.

Parameters
valueThe value of this StringValue.

◆ StringValue() [2/2]

StringValue::StringValue ( std::string  value)

Member Function Documentation

◆ getEscapedString()

std::string StringValue::getEscapedString ( ) const

◆ getRawString()

std::string StringValue::getRawString ( ) const

◆ getValueType()

ValueType StringValue::getValueType ( ) const
inlineoverridevirtual

Get the Value Type object.

Returns
ValueType

Implements Value.

◆ print()

void StringValue::print ( std::ostream &  s) const
overridevirtual

Print this StringValue to a stream.

Implements Value.

◆ toString()

std::string StringValue::toString ( ) const
overridevirtual

Get a string representation of this StringValue.

Implements Value.


The documentation for this class was generated from the following files: