Choreonoid
1.8
|
#include <ValueTree.h>
Public Member Functions | |
ScalarNode (const std::string &value, StringStyle stringStyle=PLAIN_STRING) | |
ScalarNode (int value) | |
virtual ValueNode * | clone () const |
const std::string & | stringValue () const |
StringStyle | stringStyle () const |
Public Member Functions inherited from cnoid::ValueNode | |
bool | isValid () const |
operator bool () const | |
TypeBit | LFType () const |
TypeBit | nodeType () const |
int | toInt () const |
double | toDouble () const |
float | toFloat () const |
bool | toBool () const |
double | toAngle () const |
bool | isScalar () const |
bool | isString () const |
bool | isCollection () const |
const std::string & | toString () const |
bool | isForcedRadianMode () const |
void | setForcedRadianMode (bool on=true) |
bool | isDegreeMode () const |
void | setDegreeMode () |
template<typename T > | |
T | to () const |
bool | isMapping () const |
const Mapping * | toMapping () const |
Mapping * | toMapping () |
bool | isListing () const |
const Listing * | toListing () const |
Listing * | toListing () |
bool | read (int &out_value) const |
bool | read (double &out_value) const |
bool | read (float &out_value) const |
bool | read (bool &out_value) const |
bool | read (std::string &out_value) const |
bool | hasLineInfo () const |
int | line () const |
int | column () const |
void | throwException (const std::string &message) const |
int | indexInMapping () const |
void | setAsHeaderInMapping (int priority=1) |
template<> | |
double | to () const |
template<> | |
float | to () const |
template<> | |
int | to () const |
Public Member Functions inherited from cnoid::Referenced | |
virtual | ~Referenced () |
Friends | |
class | YAMLReaderImpl |
class | ValueNode |
class | Mapping |
class | Listing |
Additional Inherited Members | |
Public Types inherited from cnoid::ValueNode | |
enum | TypeBit { INVALID_NODE = 0, SCALAR = 1, MAPPING = 2, LISTING = 4, INSERT_LF = 8, APPEND_LF = 16, FORCED_RADIAN_MODE = 32 } |
Protected Member Functions inherited from cnoid::ValueNode | |
ValueNode () | |
ValueNode (TypeBit type) | |
virtual | ~ValueNode () |
void | throwNotScalrException () const |
void | throwNotMappingException () const |
void | throwNotListingException () const |
Protected Member Functions inherited from cnoid::Referenced | |
Referenced () | |
Referenced (const Referenced &) | |
int | refCount () const |
Protected Attributes inherited from cnoid::ValueNode | |
int | typeBits |
ScalarNode::ScalarNode | ( | const std::string & | value, |
StringStyle | stringStyle = PLAIN_STRING |
||
) |
ScalarNode::ScalarNode | ( | int | value | ) |
|
virtual |
Reimplemented from cnoid::ValueNode.
|
inline |
|
inline |
|
friend |
|
friend |
|
friend |
|
friend |