Choreonoid  1.8
Public Member Functions | List of all members
cnoid::YAMLWriter Class Reference

#include <YAMLWriter.h>

Public Member Functions

 YAMLWriter ()
 
 YAMLWriter (const std::string filename)
 
 YAMLWriter (std::ostream &os)
 
 ~YAMLWriter ()
 
void setOutput (std::ostream &os)
 
void flush ()
 
bool openFile (const std::string &filename)
 
bool isFileOpen ()
 
void closeFile ()
 
void setMessageSink (std::ostream &os)
 
void putMessage (const std::string &message)
 
std::ostream & messageSink ()
 
void putNode (const ValueNode *node)
 
void setIndentWidth (int n)
 
int indentWidth () const
 
void setKeyOrderPreservationMode (bool on)
 
void startDocument ()
 
void putComment (const std::string &comment, bool doNewLine=true)
 
void putString (const char *value)
 
void putString (const std::string &value)
 
void putSingleQuotedString (const char *value)
 
void putSingleQuotedString (const std::string &value)
 
void putDoubleQuotedString (const char *value)
 
void putDoubleQuotedString (const std::string &value)
 
void putBlockStyleString (const char *value, bool isLiteral)
 
void putBlockStyleString (const std::string &value, bool isLiteral)
 
void putLiteralString (const char *value)
 
void putLiteralString (const std::string &value)
 
void putFoldedString (const char *value)
 
void putFoldedString (const std::string &value)
 
void putScalar (bool value)
 
void putScalar (int value)
 
void putScalar (double value)
 
void putScalar (const char *value)
 
void putScalar (const std::string &value)
 
void setDoubleFormat (const char *format)
 
void startMapping ()
 
void startFlowStyleMapping ()
 
void putKey (const char *key, StringStyle style=PLAIN_STRING)
 
void putKey (const std::string &key, StringStyle style=PLAIN_STRING)
 
template<class DataType >
void putKeyValue (const char *key, const DataType &value)
 
template<class DataType >
void putKeyValue (const std::string &key, const DataType &value)
 
void endMapping ()
 
void startListing ()
 
void startFlowStyleListing ()
 
void endListing ()
 
const Mappinginfo () const
 
Mappinginfo ()
 
template<typename T >
info (const std::string &key) const
 
template<typename T >
info (const std::string &key, const T &defaultValue) const
 
template<typename T >
getOrCreateInfo (const std::string &key, const T &defaultValue)
 
template<typename T >
void setInfo (const std::string &key, const T &value)
 
void resetInfo (Mapping *info)
 
template<>
double info (const std::string &key) const
 
template<>
double info (const std::string &key, const double &defaultValue) const
 
template<>
bool info (const std::string &key, const bool &defaultValue) const
 
template<>
double getOrCreateInfo (const std::string &key, const double &defaultValue)
 
template<>
bool getOrCreateInfo (const std::string &key, const bool &defaultValue)
 
template<>
void setInfo (const std::string &key, const double &value)
 
template<>
void setInfo (const std::string &key, const bool &value)
 

Constructor & Destructor Documentation

◆ YAMLWriter() [1/3]

YAMLWriter::YAMLWriter ( )

◆ YAMLWriter() [2/3]

YAMLWriter::YAMLWriter ( const std::string  filename)

◆ YAMLWriter() [3/3]

YAMLWriter::YAMLWriter ( std::ostream &  os)

◆ ~YAMLWriter()

YAMLWriter::~YAMLWriter ( )

Member Function Documentation

◆ closeFile()

void YAMLWriter::closeFile ( )

◆ endListing()

void YAMLWriter::endListing ( )

◆ endMapping()

void YAMLWriter::endMapping ( )

◆ flush()

void YAMLWriter::flush ( )

◆ getOrCreateInfo() [1/3]

template<>
CNOID_EXPORT bool cnoid::YAMLWriter::getOrCreateInfo ( const std::string &  key,
const bool &  defaultValue 
)

◆ getOrCreateInfo() [2/3]

template<>
CNOID_EXPORT double cnoid::YAMLWriter::getOrCreateInfo ( const std::string &  key,
const double &  defaultValue 
)

◆ getOrCreateInfo() [3/3]

template<typename T >
T cnoid::YAMLWriter::getOrCreateInfo ( const std::string &  key,
const T &  defaultValue 
)

◆ indentWidth()

int YAMLWriter::indentWidth ( ) const

◆ info() [1/7]

Mapping* cnoid::YAMLWriter::info ( )

◆ info() [2/7]

Mapping * YAMLWriter::info ( ) const

◆ info() [3/7]

template<typename T >
T cnoid::YAMLWriter::info ( const std::string &  key) const

◆ info() [4/7]

template<>
CNOID_EXPORT double cnoid::YAMLWriter::info ( const std::string &  key) const

◆ info() [5/7]

template<>
CNOID_EXPORT bool cnoid::YAMLWriter::info ( const std::string &  key,
const bool &  defaultValue 
) const

◆ info() [6/7]

template<>
CNOID_EXPORT double cnoid::YAMLWriter::info ( const std::string &  key,
const double &  defaultValue 
) const

◆ info() [7/7]

template<typename T >
T cnoid::YAMLWriter::info ( const std::string &  key,
const T &  defaultValue 
) const

◆ isFileOpen()

bool YAMLWriter::isFileOpen ( )

◆ messageSink()

std::ostream & YAMLWriter::messageSink ( )

◆ openFile()

bool YAMLWriter::openFile ( const std::string &  filename)

◆ putBlockStyleString() [1/2]

void YAMLWriter::putBlockStyleString ( const char *  value,
bool  isLiteral 
)

◆ putBlockStyleString() [2/2]

void YAMLWriter::putBlockStyleString ( const std::string &  value,
bool  isLiteral 
)

◆ putComment()

void YAMLWriter::putComment ( const std::string &  comment,
bool  doNewLine = true 
)

◆ putDoubleQuotedString() [1/2]

void YAMLWriter::putDoubleQuotedString ( const char *  value)

◆ putDoubleQuotedString() [2/2]

void YAMLWriter::putDoubleQuotedString ( const std::string &  value)

◆ putFoldedString() [1/2]

void cnoid::YAMLWriter::putFoldedString ( const char *  value)
inline

◆ putFoldedString() [2/2]

void cnoid::YAMLWriter::putFoldedString ( const std::string &  value)
inline

◆ putKey() [1/2]

void YAMLWriter::putKey ( const char *  key,
StringStyle  style = PLAIN_STRING 
)

◆ putKey() [2/2]

void YAMLWriter::putKey ( const std::string &  key,
StringStyle  style = PLAIN_STRING 
)

◆ putKeyValue() [1/2]

template<class DataType >
void cnoid::YAMLWriter::putKeyValue ( const char *  key,
const DataType &  value 
)
inline

◆ putKeyValue() [2/2]

template<class DataType >
void cnoid::YAMLWriter::putKeyValue ( const std::string &  key,
const DataType &  value 
)
inline

◆ putLiteralString() [1/2]

void cnoid::YAMLWriter::putLiteralString ( const char *  value)
inline

◆ putLiteralString() [2/2]

void cnoid::YAMLWriter::putLiteralString ( const std::string &  value)
inline

◆ putMessage()

void YAMLWriter::putMessage ( const std::string &  message)

◆ putNode()

void YAMLWriter::putNode ( const ValueNode node)

◆ putScalar() [1/5]

void YAMLWriter::putScalar ( bool  value)

◆ putScalar() [2/5]

void cnoid::YAMLWriter::putScalar ( const char *  value)
inline

◆ putScalar() [3/5]

void cnoid::YAMLWriter::putScalar ( const std::string &  value)
inline

◆ putScalar() [4/5]

void YAMLWriter::putScalar ( double  value)

◆ putScalar() [5/5]

void YAMLWriter::putScalar ( int  value)

◆ putSingleQuotedString() [1/2]

void YAMLWriter::putSingleQuotedString ( const char *  value)

◆ putSingleQuotedString() [2/2]

void YAMLWriter::putSingleQuotedString ( const std::string &  value)

◆ putString() [1/2]

void YAMLWriter::putString ( const char *  value)

◆ putString() [2/2]

void YAMLWriter::putString ( const std::string &  value)

◆ resetInfo()

void YAMLWriter::resetInfo ( Mapping info)

◆ setDoubleFormat()

void YAMLWriter::setDoubleFormat ( const char *  format)

◆ setIndentWidth()

void YAMLWriter::setIndentWidth ( int  n)

◆ setInfo() [1/3]

template<>
CNOID_EXPORT void cnoid::YAMLWriter::setInfo ( const std::string &  key,
const bool &  value 
)

◆ setInfo() [2/3]

template<>
CNOID_EXPORT void cnoid::YAMLWriter::setInfo ( const std::string &  key,
const double &  value 
)

◆ setInfo() [3/3]

template<typename T >
void cnoid::YAMLWriter::setInfo ( const std::string &  key,
const T &  value 
)

◆ setKeyOrderPreservationMode()

void YAMLWriter::setKeyOrderPreservationMode ( bool  on)

◆ setMessageSink()

void YAMLWriter::setMessageSink ( std::ostream &  os)

◆ setOutput()

void YAMLWriter::setOutput ( std::ostream &  os)

◆ startDocument()

void YAMLWriter::startDocument ( )

◆ startFlowStyleListing()

void YAMLWriter::startFlowStyleListing ( )

◆ startFlowStyleMapping()

void YAMLWriter::startFlowStyleMapping ( )

◆ startListing()

void YAMLWriter::startListing ( )

◆ startMapping()

void YAMLWriter::startMapping ( )

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