All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes
openfluid::market::MarketPackage Class Reference

#include <market/MarketPackage.hpp>

Inheritance diagram for openfluid::market::MarketPackage:
openfluid::market::MarketBinPackage openfluid::market::MarketDatasetPackage openfluid::market::MarketSrcPackage openfluid::market::MarketBinBuilderextPackage openfluid::market::MarketBinObserverPackage openfluid::market::MarketBinSimulatorPackage openfluid::market::MarketSrcBuilderextPackage openfluid::market::MarketSrcObserverPackage openfluid::market::MarketSrcSimulatorPackage

List of all members.

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
openfluid::tools::ExternalProgram 
m_CMakeProgram
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 
)

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 
) [static, protected]
static void openfluid::market::MarketPackage::appendToLogFile ( const std::string &  Str) [static, protected]
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
Returns:
build options of package type passed as parameter
Parameters:
Typeof options
virtual std::string openfluid::market::MarketPackage::getInstallPath ( ) const [pure virtual]
static std::string openfluid::market::MarketPackage::getLogFile ( ) [inline, static]
static std::string openfluid::market::MarketPackage::getMarketBagBinSubDir ( ) [inline, static]
static std::string openfluid::market::MarketPackage::getMarketBagBuilderextDir ( ) [inline, static]
static std::string openfluid::market::MarketPackage::getMarketBagDatasetDir ( ) [inline, static]
static std::string openfluid::market::MarketPackage::getMarketBagObserverDir ( ) [inline, static]
static std::string openfluid::market::MarketPackage::getMarketBagSimulatorDir ( ) [inline, static]
static std::string openfluid::market::MarketPackage::getMarketBagSrcSubDir ( ) [inline, static]
static std::string openfluid::market::MarketPackage::getTempBuildsDir ( ) [inline, static]
static std::string openfluid::market::MarketPackage::getTempDir ( ) [inline, static]
static std::string openfluid::market::MarketPackage::getTempDownloadsDir ( ) [inline, static]
static void openfluid::market::MarketPackage::initialize ( bool  EnableLog) [static]
virtual void openfluid::market::MarketPackage::process ( ) [pure virtual]
static void openfluid::market::MarketPackage::resetLogFile ( ) [static, protected]
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 [static, protected]
const std::string openfluid::market::MarketPackage::DLOADS_SUBDIR [static, protected]
const std::string openfluid::market::MarketPackage::LOG_FILENAME [static, protected]

Common build options for builder extensions

std::string openfluid::market::MarketPackage::m_LogFile [static, protected]

Market-bag subdir for binary packages of current type

Market-bag dir for builder extensions

Market-bag dir for datasets

Market-bag dir for observers

Market-bag dir for simulators

Market-bag subdir for source packages of current type

Common build options for observers

Common build options for simulators

std::string openfluid::market::MarketPackage::m_TempBuildsDir [static, protected]

Temporary dir for building packages

std::string openfluid::market::MarketPackage::m_TempDir [static, protected]

Temporary dir for downloaded packages


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines