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