dmlite  0.4
Public Types | Public Member Functions | Public Attributes | List of all members
dmlite::ExtendedStat Struct Reference

File/directory metadata. More...

#include <inode.h>

Inheritance diagram for dmlite::ExtendedStat:
Inheritance graph
[legend]
Collaboration diagram for dmlite::ExtendedStat:
Collaboration graph
[legend]

Public Types

enum  FileStatus { kOnline = '-', kMigrated = 'm' }

Public Member Functions

bool operator== (const ExtendedStat &) const
bool operator!= (const ExtendedStat &) const
bool operator< (const ExtendedStat &) const
bool operator> (const ExtendedStat &) const
- Public Member Functions inherited from dmlite::Extensible
bool hasField (const std::string &key) const
 Returns true if there is a field name "key".
const boost::any & operator[] (const std::string &key) const throw (DmException)
boost::any & operator[] (const std::string &key)
bool operator== (const Extensible &) const
bool operator!= (const Extensible &) const
bool operator> (const Extensible &) const
bool operator< (const Extensible &) const
unsigned long size () const
 Number of elements inside this Extensible.
void clear ()
 Removes all the content.
void copy (const Extensible &s)
 Copies the content from another Extensible.
void erase (const std::string &)
 Removes an entry.
std::string serialize (void) const
 Serializes to JSON. In principle, it only supports POD.
void deserialize (const std::string &serial) throw (DmException)
 Deserializes from a JSON string.
std::vector< std::string > getKeys (void) const throw (DmException)
 Get all the keys available.
bool getBool (const std::string &key) const throw (DmException)
 Gets a boolean. May be able to perform some conversions.
long getLong (const std::string &key) const throw (DmException)
 Gets an integer. May be able to perform some conversions.
unsigned long getUnsigned (const std::string &key) const throw (DmException)
 Gets an unsigned integer. May be able to perform some conversions.
double getDouble (const std::string &key) const throw (DmException)
 Gets a float. May be able to perform some conversions.
std::string getString (const std::string &key) const throw (DmException)
 Gets a string. May perform some conversions.
Extensible getExtensible (const std::string &key) const throw (DmException)
 Gets a nested dictionary.
std::vector< boost::any > getVector (const std::string &key) const throw (DmException)
 Gets an array.

Public Attributes

ino_t parent
struct stat stat
FileStatus status
std::string name
std::string guid
std::string csumtype
std::string csumvalue
Acl acl

Additional Inherited Members

- Static Public Member Functions inherited from dmlite::Extensible
static bool anyToBoolean (const boost::any &any)
 Converts an any to a boolean, casting if needed.
static unsigned anyToUnsigned (const boost::any &any)
 Converts an any to an unsigned, casting if needed.
static long anyToLong (const boost::any &any)
 Converts an any to a long, casting if needed.
static double anyToDouble (const boost::any &any)
 Converts an any to a double, casting if needed.
static std::string anyToString (const boost::any &any)
 Converts an any to a string, casting if needed.

Detailed Description

File/directory metadata.

Member Enumeration Documentation

Enumerator:
kOnline 
kMigrated 

Member Function Documentation

bool ExtendedStat::operator!= ( const ExtendedStat xs) const
bool ExtendedStat::operator< ( const ExtendedStat xs) const
bool ExtendedStat::operator== ( const ExtendedStat xs) const
bool ExtendedStat::operator> ( const ExtendedStat xs) const

Member Data Documentation

Acl dmlite::ExtendedStat::acl
std::string dmlite::ExtendedStat::csumtype
std::string dmlite::ExtendedStat::csumvalue
std::string dmlite::ExtendedStat::guid
std::string dmlite::ExtendedStat::name
ino_t dmlite::ExtendedStat::parent
struct stat dmlite::ExtendedStat::stat
FileStatus dmlite::ExtendedStat::status

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