- Reintegrated the other-tags branch into my staging branch. Local edits were required to integrate with the changes from the event-api branch.

This commit is contained in:
rtweeks21
2010-10-16 09:08:03 +00:00
parent 3126507ab9
commit 7d1508e090
11 changed files with 210 additions and 14 deletions

View File

@@ -11,6 +11,7 @@ namespace YAML
enum EMITTER_MANIP {
// general manipulators
Auto,
TagByKind,
// output character set
EmitNonAscii,
@@ -82,14 +83,24 @@ namespace YAML
}
struct _Tag {
_Tag(const std::string& content_): content(content_), verbatim(true) {}
explicit _Tag(const std::string& content_)
: content(content_), verbatim(true)
{
}
std::string content;
bool verbatim;
};
inline _Tag VerbatimTag(const std::string& content) {
return _Tag(content);
}
typedef _Tag VerbatimTag;
struct LocalTag : public _Tag
{
explicit LocalTag(const std::string& content_)
: _Tag(content_)
{
verbatim = false;
}
};
struct _Comment {
_Comment(const std::string& content_): content(content_) {}