All Classes Namespaces Functions Variables Enumerations Enumerator Pages
Public Member Functions | List of all members
entity::DataItem Class Reference

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
 

Detailed Description

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.

Member Function Documentation

void DataItem::isPresent ( bool  p)
Parameters
pDefine whether the DataItem is present within the system.
bool DataItem::isPresent ( ) const
Returns
true if the DataItem is present within the system (i.e. it's been instantiated), false otherwise.

The documentation for this class was generated from the following files: