diff --git a/src/CLI2.cpp b/src/CLI2.cpp index b5fc0317e..e8963ebc2 100644 --- a/src/CLI2.cpp +++ b/src/CLI2.cpp @@ -48,6 +48,7 @@ static int safetyValveDefault = 10; //////////////////////////////////////////////////////////////////////////////// A2::A2 () : _name ("") +, _lextype (Lexer::Type::word) { } */ @@ -73,6 +74,7 @@ A2::A2 (const std::string& name, const double raw) _name = name; attribute ("raw", raw); } +*/ //////////////////////////////////////////////////////////////////////////////// A2::~A2 () @@ -82,6 +84,7 @@ A2::~A2 () //////////////////////////////////////////////////////////////////////////////// A2::A2 (const A2& other) : _name (other._name) +, _lextype (other._lextype) , _tags (other._tags) , _attributes (other._attributes) { @@ -93,6 +96,7 @@ A2& A2::operator= (const A2& other) if (this != &other) { _name = other._name; + _lextype = other._lextype; _tags = other._tags; _attributes = other._attributes; } @@ -116,6 +120,7 @@ void A2::tag (const std::string& tag) _tags.push_back (tag); } +/* //////////////////////////////////////////////////////////////////////////////// void A2::unTag (const std::string& tag) { @@ -194,7 +199,6 @@ const std::string A2::dump () const if (atts.length ()) output += " " + atts; -/* // Dump tags. std::string tags; for (auto& tag : _tags) @@ -215,7 +219,6 @@ const std::string A2::dump () const if (tags.length ()) output += ' ' + tags; -*/ return output; } diff --git a/src/CLI2.h b/src/CLI2.h index 8adf8614b..c4c3834f9 100644 --- a/src/CLI2.h +++ b/src/CLI2.h @@ -38,16 +38,20 @@ class A2 { public: +/* A2 (); +*/ A2 (const std::string&, const std::string&, Lexer::Type); /* A2 (const std::string&, const int); A2 (const std::string&, const double); +*/ ~A2 (); - A2 (const A&); + A2 (const A2&); A2& operator= (const A2&); bool hasTag (const std::string&) const; void tag (const std::string&); +/* void unTag (const std::string&); void unTagAll (); */ @@ -63,9 +67,7 @@ public: public: std::string _name; Lexer::Type _lextype; -/* std::vector _tags; -*/ std::map _attributes; };