KiCad PCB EDA Suite
json11::JsonString Class Referencefinal
Inheritance diagram for json11::JsonString:
json11::Value< Json::STRING, string >

Public Member Functions

 JsonString (const string &value)
 
 JsonString (string &&value)
 

Protected Member Functions

Json::Type type () const override
 
bool equals (const JsonValue *other) const override
 
bool less (const JsonValue *other) const override
 
void dump (string &out) const override
 

Protected Attributes

const string m_value
 

Private Member Functions

const string & string_value () const override
 

Detailed Description

Definition at line 275 of file json11.cpp.

Constructor & Destructor Documentation

json11::JsonString::JsonString ( const string &  value)
inlineexplicit

Definition at line 280 of file json11.cpp.

280 : Value( value ) {}
json11::JsonString::JsonString ( string &&  value)
inlineexplicit

Definition at line 281 of file json11.cpp.

281 : Value( move( value ) ) {}

Member Function Documentation

void json11::Value< tag, string >::dump ( string &  out) const
inlineoverrideprotectedinherited

Definition at line 230 of file json11.cpp.

References json11::dump().

230 { json11::dump( m_value, out ); }
static void dump(NullStruct, string &out)
Definition: json11.cpp:53
bool json11::Value< tag, string >::equals ( const JsonValue< Json::STRING, string > *  other) const
inlineoverrideprotectedinherited

Definition at line 219 of file json11.cpp.

220  {
221  return m_value == static_cast<const Value<tag, T>*>(other)->m_value;
222  }
bool json11::Value< tag, string >::less ( const JsonValue< Json::STRING, string > *  other) const
inlineoverrideprotectedinherited

Definition at line 224 of file json11.cpp.

225  {
226  return m_value < static_cast<const Value<tag, T>*>(other)->m_value;
227  }
const string& json11::JsonString::string_value ( ) const
inlineoverrideprivate

Definition at line 277 of file json11.cpp.

277 { return m_value; }
Json::Type json11::Value< tag, string >::type ( ) const
inlineoverrideprotectedinherited

Definition at line 213 of file json11.cpp.

214  {
215  return tag;
216  }

Member Data Documentation

const string json11::Value< tag, string >::m_value
protectedinherited

Definition at line 229 of file json11.cpp.


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