15 std::vector<std::string> args(argv + 1, argv + argc);
45 std::cout << emitter.
c_str() <<
"\n";
48 std::cerr << e.what() <<
"\n";
52 int main(
int argc,
char **argv)
Params ParseArgs(int argc, char **argv)
virtual void OnDocumentStart(const YAML_PM::Mark &)
virtual void OnNull(const YAML_PM::Mark &, YAML_PM::anchor_t)
bool GetNextDocument(Node &document)
virtual void OnMapStart(const YAML_PM::Mark &, const std::string &, YAML_PM::anchor_t)
virtual void OnSequenceStart(const YAML_PM::Mark &, const std::string &, YAML_PM::anchor_t)
const char * c_str() const
virtual void OnDocumentEnd()
virtual void OnSequenceEnd()
virtual void OnScalar(const YAML_PM::Mark &, const std::string &, YAML_PM::anchor_t, const std::string &)
int main(int argc, char **argv)
virtual void OnAlias(const YAML_PM::Mark &, YAML_PM::anchor_t)
void parse(std::istream &input)