Public Member Functions | |
| int | getFormatVersion () const |
| Returns CGI format version for this metadata set. | |
| bool | hasKey (const std::string &key) const |
| const std::string & | get (const std::string &key) const |
| template<class T > | |
| const T | get (const std::string &key) const |
| void | set (const std::string &key, const std::string &value) |
| void | add (const std::string &key, const std::string &value) |
| void | removeAll (const std::string &key) |
|
const std::vector< std::pair < std::string, std::string > > & | getMap () const |
| void | initDefaults (const char *softwareVersion=0) |
| Fills default metadata values: GENERATED_BY, GENERATED_AT, SOFTWARE_VERSION, etc. | |
| void | transfer (const DelimitedFileMetadata &src, const std::string &keys, const std::string &prefix="") |
| Transfer specified keys from another metadata store, optionally attaching a specified prefix to each key. | |
| void | sort () |
| Sorts the lines. | |
| void | setFileName (const std::string &fn) |
| int cgatools::util::DelimitedFileMetadata::getFormatVersion | ( | ) | const |
Returns CGI format version for this metadata set.
The version is returned as MAJOR * 1000 + MINOR, that is, for format version "1.2" this returns 1002. When the version cannot be detected, throws an exception.
1.6.2