Enhancements - T2::legacyParse

- T2 can now parse all supported legacy formats (ff2, ff3) as well as
  ff4.
- Added tag and attribute support to T2.
- Added T2 unit tests for all formats.
This commit is contained in:
Paul Beckingham 2009-06-07 22:17:11 -04:00
parent 72e3f76ed9
commit 9d48faa759
9 changed files with 246 additions and 56 deletions

View file

@ -40,6 +40,7 @@ public:
T2& operator= (const T2&); // Assignment operator
~T2 (); // Destructor
void parse (const std::string&);
std::string composeCSV ();
// Status values.
@ -53,28 +54,23 @@ public:
int id () const { return sequence.size () ? sequence[0] : 0; }
void id (int anotherId) { sequence.push_back (anotherId); }
/*
status getStatus () const { return mStatus; }
void setStatus (status s) { mStatus = s; }
static status textToStatus (const std::string&);
static std::string statusToText (status);
bool hasTag (const std::string&) const;
void getRemoveTags (std::vector<std::string>&); // SPECIAL
void addRemoveTag (const std::string&); // SPECIAL
int getTagCount () const;
void getTags (std::vector<std::string>&) const;
*/
status getStatus ();
void setSatus (status);
int getTagCount ();
bool hasTag (const std::string&);
void addTag (const std::string&);
/*
void addTags (const std::vector <std::string>&);
*/
void getTags (std::vector<std::string>&);
void removeTag (const std::string&);
/*
void removeTags ();
*/
void getAnnotations (std::vector <Att>&) const;
void setAnnotations (const std::vector <Att>&);
void addAnnotation (const std::string&);
void removeAnnotations ();
bool valid () const;