Enhancement - Record::composeF4
- Implemented Record::composeF4.
This commit is contained in:
@@ -59,6 +59,22 @@ Record::~Record ()
|
||||
{
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
std::string Record::composeF4 ()
|
||||
{
|
||||
std::string ff4 = "[";
|
||||
|
||||
bool first = true;
|
||||
foreach (r, (*this))
|
||||
{
|
||||
ff4 += (first ? "" : " ");
|
||||
ff4 += r->second.composeF4 ();
|
||||
}
|
||||
|
||||
ff4 += "]";
|
||||
return ff4;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// start --> [ --> name --> : --> " --> value --> " --> ] --> end
|
||||
|
||||
@@ -39,8 +39,9 @@ public:
|
||||
Record& operator= (const Record&); // Assignment operator
|
||||
virtual ~Record (); // Destructor
|
||||
|
||||
virtual std::string composeF4 () = 0;
|
||||
virtual std::string composeCSV () = 0;
|
||||
|
||||
std::string composeF4 ();
|
||||
void parse (const std::string&);
|
||||
|
||||
std::vector <Att> all ();
|
||||
|
||||
@@ -36,7 +36,7 @@ T::T ()
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
T::T (const std::string& input)
|
||||
{
|
||||
throw std::string ("unimplemented T::T");
|
||||
parse (input);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user