LunaSysMgr
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PackageDescription Class Reference

#include <PackageDescription.h>

Public Member Functions

 PackageDescription ()
 
 ~PackageDescription ()
 
const std::string & id () const
 
const std::string & version () const
 
const std::string & folderPath () const
 
uint64_t packageSize () const
 
void setPackageSize (uint64_t s)
 
uint32_t blockSize () const
 
void setBlockSize (uint32_t s)
 
bool isOldStyle () const
 
const std::vector< std::string > & appIds () const
 
const std::vector< std::string > & serviceIds () const
 
const std::vector< std::string > & accountIds () const
 
const std::string & jsonString () const
 
json_object * toJSON () const
 
bool operator== (const PackageDescription &cmp) const
 
bool operator!= (const PackageDescription &cmp) const
 

Static Public Member Functions

static PackageDescriptionfromFile (const std::string &filePath, const std::string &folderPath)
 
static PackageDescriptionfromJson (json_object *root, const std::string &folderPath)
 
static PackageDescriptionfromApplicationDescription (ApplicationDescription *appDesc)
 

Constructor & Destructor Documentation

PackageDescription::PackageDescription ( )
PackageDescription::~PackageDescription ( )

Member Function Documentation

const std::vector<std::string>& PackageDescription::accountIds ( ) const
inline
const std::vector<std::string>& PackageDescription::appIds ( ) const
inline
uint32_t PackageDescription::blockSize ( ) const
inline
const std::string& PackageDescription::folderPath ( ) const
inline
PackageDescription * PackageDescription::fromApplicationDescription ( ApplicationDescription appDesc)
static
PackageDescription * PackageDescription::fromFile ( const std::string &  filePath,
const std::string &  folderPath 
)
static
PackageDescription * PackageDescription::fromJson ( json_object *  root,
const std::string &  folderPath 
)
static
const std::string& PackageDescription::id ( ) const
inline
bool PackageDescription::isOldStyle ( ) const
inline
const std::string& PackageDescription::jsonString ( ) const
inline
bool PackageDescription::operator!= ( const PackageDescription cmp) const
bool PackageDescription::operator== ( const PackageDescription cmp) const
uint64_t PackageDescription::packageSize ( ) const
inline
const std::vector<std::string>& PackageDescription::serviceIds ( ) const
inline
void PackageDescription::setBlockSize ( uint32_t  s)
inline
void PackageDescription::setPackageSize ( uint64_t  s)
inline
json_object * PackageDescription::toJSON ( ) const
const std::string& PackageDescription::version ( ) const
inline

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