Fork Vasum on GitHub Official Vasum Wiki on Tizen.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cargo Namespace Reference

Namespaces

 fsutils
 
 ipc
 
 sqlite3
 

Classes

struct  CargoException
 Base class for exceptions in libcargo. More...
 
struct  NoKeyException
 No such key error. More...
 
struct  InternalIntegrityException
 Invalid integral type integrity error. More...
 
struct  ContainerSizeException
 Container size does not match. More...
 
struct  isLikeTuple
 
struct  isLikeTuple< std::tuple< R...> >
 
struct  isLikeTuple< std::pair< R...> >
 
struct  isStreamableIn
 
struct  isStreamableOut
 
struct  has_member_impl
 
struct  has_member
 
struct  check_union
 
struct  isUnion
 
struct  isVisitableHelper__
 
struct  isVisitable
 Helper for compile-time checking against existance of template method 'accept'. More...
 
struct  FileDescriptor
 Whenever possible, this type will be serialized using Linux file descriptor passing. More...
 
class  FDStore
 
class  FromFDStoreVisitor
 
class  ToFDStoreVisitor
 
class  FromGVariantVisitor
 
class  ToGVariantVisitor
 
class  FromJsonVisitor
 
class  ToJsonVisitor
 
class  FromKVStoreIgnoringVisitor
 A variant of KVStoreVisitor that ignore non-existing fields. More...
 
class  FromKVStoreVisitorBase
 Base class for KVStore visitors. More...
 
class  FromKVStoreVisitor
 Default KVStore visitor. More...
 
class  KVStore
 
class  ToKVStoreVisitor
 

Functions

template<class T , class F , typename... A>
void visitFields (T &t, F f, A...args)
 
template<class Cargo >
void loadFromFD (const int fd, Cargo &visitable)
 Load binary data from a file/socket/pipe represented by the fd. More...
 
template<class Cargo >
void saveToFD (const int fd, const Cargo &visitable)
 Save binary data to a file/socket/pipe represented by the fd. More...
 
template<class Cargo >
void loadFromGVariant (GVariant *gvariant, Cargo &visitable)
 Fills the cargo structure with data stored in the GVariant. More...
 
template<class Cargo >
GVariant * saveToGVariant (const Cargo &visitable)
 Saves the visitable in a GVariant. More...
 
template<class Cargo >
void loadFromJsonString (const std::string &jsonString, Cargo &visitable)
 Fills the visitable with data stored in the json string. More...
 
template<class Cargo >
std::string saveToJsonString (const Cargo &visitable)
 Creates a string representation of the visitable in json format. More...
 
template<class Cargo >
void loadFromJsonFile (const std::string &filename, Cargo &visitable)
 Loads the visitable from a json file. More...
 
template<class Cargo >
void saveToJsonFile (const std::string &filename, const Cargo &visitable)
 Saves the visitable in a json file. More...
 
template<class Cargo >
void loadFromKVStore (const std::string &filename, Cargo &visitable, const std::string &visitableName)
 Loads a visitable structure from KVStore. More...
 
template<class Cargo >
void saveToKVStore (const std::string &filename, const Cargo &visitable, const std::string &visitableName)
 Saves the visitable to a KVStore. More...
 
template<typename T >
fromString (const std::string &strValue)
 
template<typename T >
std::string toString (const T &value)
 
template<char delim = '.', typename Arg1 , typename... Args>
std::string key (const Arg1 &a1, const Args &...args)
 Concatenates all parameters into one std::string. More...
 
template<char delim = '.'>
std::string key ()
 Function added for key function completeness. More...
 
template<class Cargo >
void loadFromKVStoreWithJson (const std::string &kvfile, const std::string &json, Cargo &visitable, const std::string &kvVisitableName)
 Load the visitable from KVStore with defaults given in json. More...
 
template<class Cargo >
void loadFromKVStoreWithJsonFile (const std::string &kvfile, const std::string &jsonfile, Cargo &visitable, const std::string &kvVisitableName)
 Load the data from KVStore with defaults given in json file. More...
 

Function Documentation

template<typename T >
T cargo::fromString ( const std::string &  strValue)
template<char delim = '.', typename Arg1 , typename... Args>
std::string cargo::key ( const Arg1 &  a1,
const Args &...  args 
)

Concatenates all parameters into one std::string.

Uses '.' to connect the terms.

Parameters
argscomponents of the string
Template Parameters
delimoptional delimiter
Argsany type implementing str
Returns
string created from he args
template<char delim = '.'>
std::string cargo::key ( )

Function added for key function completeness.

Template Parameters
delim= '.' parameter not used, added for consistency
Returns
empty string
template<typename T >
std::string cargo::toString ( const T &  value)
template<class T , class F , typename... A>
void cargo::visitFields ( T &  t,
f,
A...  args 
)