#include <market/MarketPackage.hpp>
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 |
openfluid::market::MarketPackage::MarketPackage | ( | const openfluid::ware::WareID_t & | ID, |
const std::string & | PackageURL | ||
) |
virtual openfluid::market::MarketPackage::~MarketPackage | ( | ) | [virtual] |
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
Type | of package |
BuildOptions | to add |
static std::string openfluid::market::MarketPackage::getCommonBuildOptions | ( | const PackageInfo::PackageType & | Type | ) | [static] |
Type | of 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] |
Implemented in openfluid::market::MarketBinBuilderextPackage, openfluid::market::MarketBinObserverPackage, openfluid::market::MarketBinSimulatorPackage, openfluid::market::MarketDatasetPackage, openfluid::market::MarketSrcBuilderextPackage, openfluid::market::MarketSrcObserverPackage, and openfluid::market::MarketSrcSimulatorPackage.
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] |
virtual PackageInfo::PackageType openfluid::market::MarketPackage::getPackageType | ( | ) | const [pure virtual] |
Implemented in openfluid::market::MarketBinBuilderextPackage, openfluid::market::MarketBinObserverPackage, openfluid::market::MarketBinSimulatorPackage, openfluid::market::MarketDatasetPackage, openfluid::market::MarketSrcBuilderextPackage, openfluid::market::MarketSrcObserverPackage, and openfluid::market::MarketSrcSimulatorPackage.
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
Type | of options |
BuildOptions | options 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
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] |
std::string openfluid::market::MarketPackage::m_BuilderextBuildConfigOptions [static, protected] |
Common build options for builder extensions
openfluid::tools::ExternalProgram openfluid::market::MarketPackage::m_CMakeProgram [static, protected] |
bool openfluid::market::MarketPackage::m_Downloaded [protected] |
bool openfluid::market::MarketPackage::m_Initialized [static, protected] |
bool openfluid::market::MarketPackage::m_IsLogEnabled [static, protected] |
std::string openfluid::market::MarketPackage::m_LogFile [static, protected] |
std::string openfluid::market::MarketPackage::m_MarketBagBinSubDir [static, protected] |
Market-bag subdir for binary packages of current type
std::string openfluid::market::MarketPackage::m_MarketBagBuilderextDir [static, protected] |
Market-bag dir for builder extensions
std::string openfluid::market::MarketPackage::m_MarketBagDatasetDir [static, protected] |
Market-bag dir for datasets
std::string openfluid::market::MarketPackage::m_MarketBagObserverDir [static, protected] |
Market-bag dir for observers
std::string openfluid::market::MarketPackage::m_MarketBagSimulatorDir [static, protected] |
Market-bag dir for simulators
std::string openfluid::market::MarketPackage::m_MarketBagSrcSubDir [static, protected] |
Market-bag subdir for source packages of current type
std::string openfluid::market::MarketPackage::m_ObserverBuildConfigOptions [static, protected] |
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 [static, protected] |
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] |
std::string openfluid::market::MarketPackage::m_TempDownloadsDir [static, protected] |
Temporary dir for downloaded packages