Public Member Functions | Static Public Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
openfluid::market::MarketPackage Class Referenceabstract

#include <market/MarketPackage.hpp>

Inheritance diagram for openfluid::market::MarketPackage:
Inheritance graph
[legend]

Public Member Functions

 MarketPackage (const openfluid::ware::WareID_t &ID, const std::string &PackageURL)
 
virtual ~MarketPackage ()
 
openfluid::ware::WareID_t getID () const
 
virtual MetaPackageInfo::SelectionType getFormat () const =0
 
virtual std::string getInstallPath () const =0
 
virtual PackageInfo::PackageType getPackageType () const =0
 
virtual void process ()=0
 
void download ()
 

Static Public Member Functions

static void initialize (bool EnableLog)
 
static void setWorksDirs (const std::string &TempDir, const std::string &MarketBagSimulatorDir, const std::string &MarketBagObserverDir, const std::string &MarketBagBuilderextDir, const std::string &MarketBagDatasetDir, const std::string &MarketBagBinSubDir, const std::string &MarketBagSrcSubDir)
 
static std::string getMarketBagSimulatorDir ()
 
static std::string getMarketBagObserverDir ()
 
static std::string getMarketBagBuilderextDir ()
 
static std::string getMarketBagDatasetDir ()
 
static std::string getMarketBagBinSubDir ()
 
static std::string getMarketBagSrcSubDir ()
 
static std::string getTempDir ()
 
static std::string getTempBuildsDir ()
 
static std::string getTempDownloadsDir ()
 
static std::string getLogFile ()
 
static std::string getCommonBuildOptions (const PackageInfo::PackageType &Type)
 
static void setCommonBuildOptions (const PackageInfo::PackageType &Type, const std::string &BuildOptions)
 
static std::string composeFullBuildOptions (const PackageInfo::PackageType &Type, const std::string &BuildOptions)
 

Static Protected Member Functions

static void resetLogFile ()
 
static void appendToLogFile (const std::string &PackageName, const PackageInfo::PackageType &Type, const std::string &Action, const std::string &Str)
 
static void appendToLogFile (const std::string &Str)
 

Protected Attributes

openfluid::ware::WareID_t m_ID
 
std::string m_PackageURL
 
std::string m_PackageFilename
 
std::string m_PackageDest
 
bool m_Downloaded
 

Static Protected Attributes

static const std::string BUILDS_SUBDIR
 
static const std::string DLOADS_SUBDIR
 
static const std::string LOG_FILENAME
 
static std::string m_TempDir
 
static std::string m_TempBuildsDir
 
static std::string m_TempDownloadsDir
 
static std::string m_MarketBagSimulatorDir
 
static std::string m_MarketBagObserverDir
 
static std::string m_MarketBagBuilderextDir
 
static std::string m_MarketBagDatasetDir
 
static std::string m_MarketBagBinSubDir
 
static std::string m_MarketBagSrcSubDir
 
static std::string m_SimulatorBuildConfigOptions
 
static std::string m_ObserverBuildConfigOptions
 
static std::string m_BuilderextBuildConfigOptions
 
static std::string m_LogFile
 
static bool m_IsLogEnabled
 
static bool m_Initialized
 

Constructor & Destructor Documentation

openfluid::market::MarketPackage::MarketPackage ( const openfluid::ware::WareID_t ID,
const std::string &  PackageURL 
)
virtual openfluid::market::MarketPackage::~MarketPackage ( )
virtual

Member Function Documentation

static void openfluid::market::MarketPackage::appendToLogFile ( const std::string &  PackageName,
const PackageInfo::PackageType Type,
const std::string &  Action,
const std::string &  Str 
)
staticprotected
static void openfluid::market::MarketPackage::appendToLogFile ( const std::string &  Str)
staticprotected
static std::string openfluid::market::MarketPackage::composeFullBuildOptions ( const PackageInfo::PackageType Type,
const std::string &  BuildOptions 
)
static

Adds BuildOptions to options of package type

Returns
Common build options of package type with BuildOptions
Parameters
Typeof package
BuildOptionsto add
void openfluid::market::MarketPackage::download ( )
static std::string openfluid::market::MarketPackage::getCommonBuildOptions ( const PackageInfo::PackageType Type)
static
Returns
build options of package type passed as parameter
Parameters
Typeof options
virtual MetaPackageInfo::SelectionType openfluid::market::MarketPackage::getFormat ( ) const
pure virtual
openfluid::ware::WareID_t openfluid::market::MarketPackage::getID ( ) const
inline
virtual std::string openfluid::market::MarketPackage::getInstallPath ( ) const
pure virtual
static std::string openfluid::market::MarketPackage::getLogFile ( )
inlinestatic
static std::string openfluid::market::MarketPackage::getMarketBagBinSubDir ( )
inlinestatic
static std::string openfluid::market::MarketPackage::getMarketBagBuilderextDir ( )
inlinestatic
static std::string openfluid::market::MarketPackage::getMarketBagDatasetDir ( )
inlinestatic
static std::string openfluid::market::MarketPackage::getMarketBagObserverDir ( )
inlinestatic
static std::string openfluid::market::MarketPackage::getMarketBagSimulatorDir ( )
inlinestatic
static std::string openfluid::market::MarketPackage::getMarketBagSrcSubDir ( )
inlinestatic
virtual PackageInfo::PackageType openfluid::market::MarketPackage::getPackageType ( ) const
pure virtual
static std::string openfluid::market::MarketPackage::getTempBuildsDir ( )
inlinestatic
static std::string openfluid::market::MarketPackage::getTempDir ( )
inlinestatic
static std::string openfluid::market::MarketPackage::getTempDownloadsDir ( )
inlinestatic
static void openfluid::market::MarketPackage::initialize ( bool  EnableLog)
static
virtual void openfluid::market::MarketPackage::process ( )
pure virtual
static void openfluid::market::MarketPackage::resetLogFile ( )
staticprotected
static void openfluid::market::MarketPackage::setCommonBuildOptions ( const PackageInfo::PackageType Type,
const std::string &  BuildOptions 
)
static

Sets build options of package type passed as parameter with BuildOptions

Parameters
Typeof options
BuildOptionsoptions to store
static void openfluid::market::MarketPackage::setWorksDirs ( const std::string &  TempDir,
const std::string &  MarketBagSimulatorDir,
const std::string &  MarketBagObserverDir,
const std::string &  MarketBagBuilderextDir,
const std::string &  MarketBagDatasetDir,
const std::string &  MarketBagBinSubDir,
const std::string &  MarketBagSrcSubDir 
)
static

Set directory paths attributes with paths passed as parameter

Member Data Documentation

const std::string openfluid::market::MarketPackage::BUILDS_SUBDIR
staticprotected
const std::string openfluid::market::MarketPackage::DLOADS_SUBDIR
staticprotected
const std::string openfluid::market::MarketPackage::LOG_FILENAME
staticprotected
std::string openfluid::market::MarketPackage::m_BuilderextBuildConfigOptions
staticprotected

Common build options for builder extensions

bool openfluid::market::MarketPackage::m_Downloaded
protected
openfluid::ware::WareID_t openfluid::market::MarketPackage::m_ID
protected
bool openfluid::market::MarketPackage::m_Initialized
staticprotected
bool openfluid::market::MarketPackage::m_IsLogEnabled
staticprotected
std::string openfluid::market::MarketPackage::m_LogFile
staticprotected
std::string openfluid::market::MarketPackage::m_MarketBagBinSubDir
staticprotected

Market-bag subdir for binary packages of current type

std::string openfluid::market::MarketPackage::m_MarketBagBuilderextDir
staticprotected

Market-bag dir for builder extensions

std::string openfluid::market::MarketPackage::m_MarketBagDatasetDir
staticprotected

Market-bag dir for datasets

std::string openfluid::market::MarketPackage::m_MarketBagObserverDir
staticprotected

Market-bag dir for observers

std::string openfluid::market::MarketPackage::m_MarketBagSimulatorDir
staticprotected

Market-bag dir for simulators

std::string openfluid::market::MarketPackage::m_MarketBagSrcSubDir
staticprotected

Market-bag subdir for source packages of current type

std::string openfluid::market::MarketPackage::m_ObserverBuildConfigOptions
staticprotected

Common build options for observers

std::string openfluid::market::MarketPackage::m_PackageDest
protected
std::string openfluid::market::MarketPackage::m_PackageFilename
protected
std::string openfluid::market::MarketPackage::m_PackageURL
protected
std::string openfluid::market::MarketPackage::m_SimulatorBuildConfigOptions
staticprotected

Common build options for simulators

std::string openfluid::market::MarketPackage::m_TempBuildsDir
staticprotected

Temporary dir for building packages

std::string openfluid::market::MarketPackage::m_TempDir
staticprotected
std::string openfluid::market::MarketPackage::m_TempDownloadsDir
staticprotected

Temporary dir for downloaded packages


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