eRPC Generator (erpcgen)  Rev. 1.12.0
NXP Semiconductors
StringValue Class Reference

String value. More...

#include <Value.hpp>

Inheritance diagram for StringValue:
Value

Public Member Functions

 StringValue ()
 Constructor.
 
 StringValue (const std::string &value)
 Constructor. More...
 
 StringValue (const std::string *value)
 Constructor. More...
 
 StringValue (const StringValue &other)
 Copy constructor. More...
 
virtual std::string getTypeName () const override
 Get StringValue type name. More...
 
virtual size_t getSize () const override
 Get StringValue type size. More...
 
const std::string & getString () const
 Get StringValue value. More...
 
 operator const char * () const
 Get StringValue value. More...
 
 operator const std::string & () const
 Get StringValue value. More...
 
 operator std::string & ()
 Get StringValue value. More...
 
 operator const std::string * ()
 Get StringValue value. More...
 
 operator std::string * ()
 Get StringValue value. More...
 
StringValueoperator= (const StringValue &other)
 Assign operator. More...
 
StringValueoperator= (const std::string &value)
 Assign operator. More...
 
StringValueoperator= (const char *value)
 Assign operator. More...
 
virtual std::string toString () const override
 Get StringValue type string representation. More...
 
virtual Valueclone () const override
 Clone StringValue. More...
 
- Public Member Functions inherited from Value
 Value (value_type_t theType)
 Constructor. More...
 
virtual ~Value ()
 Destructor.
 
virtual value_type_t getType () const
 Get Value type. More...
 

Protected Attributes

std::string m_value
 The string value.
 

Detailed Description

String value.

Simply wraps the STL std::string class.

Constructor & Destructor Documentation

StringValue::StringValue ( const std::string &  value)
inlineexplicit

Constructor.

Parameters
[in]valueStringValue value.
StringValue::StringValue ( const std::string *  value)
inlineexplicit

Constructor.

Parameters
[in]valueStringValue value.
StringValue::StringValue ( const StringValue other)
inline

Copy constructor.

Parameters
[in]otherStringValue to copy.

Member Function Documentation

virtual Value* StringValue::clone ( ) const
inlineoverridevirtual

Clone StringValue.

Returns
Cloned StringValue.

Implements Value.

virtual size_t StringValue::getSize ( ) const
inlineoverridevirtual

Get StringValue type size.

Returns
StringValue type size.

Implements Value.

const std::string& StringValue::getString ( ) const
inline

Get StringValue value.

Returns
StringValue value.
virtual std::string StringValue::getTypeName ( ) const
inlineoverridevirtual

Get StringValue type name.

Returns
StringValue type name.

Implements Value.

StringValue::operator const char * ( ) const
inline

Get StringValue value.

Returns
StringValue value.
StringValue::operator const std::string & ( ) const
inline

Get StringValue value.

Returns
StringValue value.
StringValue::operator const std::string * ( )
inline

Get StringValue value.

Returns
StringValue value.
StringValue::operator std::string & ( )
inline

Get StringValue value.

Returns
StringValue value.
StringValue::operator std::string * ( )
inline

Get StringValue value.

Returns
StringValue value.
StringValue& StringValue::operator= ( const StringValue other)
inline

Assign operator.

Parameters
[in]otherStringValue to copy.
Returns
StringValue reference.
StringValue& StringValue::operator= ( const std::string &  value)
inline

Assign operator.

Parameters
[in]valueStringValue value.
Returns
StringValue reference.
StringValue& StringValue::operator= ( const char *  value)
inline

Assign operator.

Parameters
[in]valueStringValue value.
Returns
StringValue reference.
virtual std::string StringValue::toString ( ) const
inlineoverridevirtual

Get StringValue type string representation.

Returns
StringValue type string representation.

Implements Value.


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