A DataItem (DI) is an object which represents a single file and is the basic unit of the SimDB system. More...
#include <DataItem.h>
Public Member Functions | |
DataItem (const std::string &n) | |
DataItem (const std::string &n, const std::string &f) | |
DataItem (const std::string &n, Tag t, Group g) | |
void | setName (const std::string &n) |
void | setTag (Tag t) |
void | setGroup (Group g) |
void | setFileName (const std::string &n) |
void | setOriginalSize (size_t s) |
void | setEncodedSize (size_t s) |
void | setEncoding (char *enc) |
std::string | getName () const |
Tag | getTag () const |
Group | getGroup () const |
std::string | getFileName () const |
size_t | getOriginalSize () const |
size_t | getEncodedSize () const |
char * | getEncoding () const |
void | isPresent (bool p) |
bool | isPresent () const |
bool | operator== (const DataItem &other) const |
bool | operator!= (const DataItem &other) const |
A DataItem (DI) is an object which represents a single file and is the basic unit of the SimDB system.
A DataItem is described by a name, a tag and a group. There is also the name of the "instance" file provided by the client at the time of the DataSet creation, as well as the byte size of this file. For convenience reasons this class holds also the base64-encoded size of the file and a pointer to the encoded block.
void DataItem::isPresent | ( | bool | p | ) |
p | Define whether the DataItem is present within the system. |
bool DataItem::isPresent | ( | ) | const |