mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-09 11:35:49 +02:00
Enhancement - FF4 Parsing
- Implemented TDB::load - Changed Record to inherit from std::map <std::string, Att> - Changed Filter to inherit from std::vector <Att>
This commit is contained in:
parent
2e5e20e3e5
commit
b7866b7434
9 changed files with 87 additions and 45 deletions
|
@ -31,7 +31,7 @@
|
|||
#include <map>
|
||||
#include "Att.h"
|
||||
|
||||
class Record
|
||||
class Record : public std::map <std::string, Att>
|
||||
{
|
||||
public:
|
||||
Record (); // Default constructor
|
||||
|
@ -45,13 +45,10 @@ public:
|
|||
|
||||
std::vector <Att> all ();
|
||||
const std::string get (const std::string&);
|
||||
int getInt (const std::string&);
|
||||
int get_int (const std::string&);
|
||||
void set (const std::string&, const std::string&);
|
||||
void set (const std::string&, int);
|
||||
void remove (const std::string&);
|
||||
|
||||
private:
|
||||
std::map <std::string, Att> mAtts;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue