PARTONS  
PARtonic Tomography Of Nucleon Software
Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
PARTONS::Partons Class Reference

Public Member Functions

virtual ~Partons ()
 Default destructor. More...
 
void init (int argc, char **argv)
 Must be called before any other thing. More...
 
void close ()
 Called at the very end of the code. More...
 
std::string getCurrentWorkingDirectory ()
 
BaseObjectRegistrygetBaseObjectRegistry () const
 
ServiceObjectRegistrygetServiceObjectRegistry () const
 
BaseObjectFactorygetBaseObjectFactory () const
 
ModuleObjectFactorygetModuleObjectFactory () const
 
ElemUtils::LoggerManagergetLoggerManager () const
 
EnvironmentConfigurationgetEnvironmentConfiguration () const
 

Static Public Member Functions

static PartonsgetInstance ()
 Share a unique pointer of this class. More...
 

Static Public Attributes

static const std::string PROPERTIES_FILE_NAME = "partons.properties"
 

Private Member Functions

 Partons ()
 Default constructor. More...
 
void retrieveEnvironmentConfiguration ()
 Retrieve environment configuration. More...
 
void checkMandatoryFiles ()
 Check if "partons.properties" file path is readable. More...
 
void printVersion () const
 Prints information about the version to Logger. More...
 

Private Attributes

BaseObjectRegistrym_pBaseObjectRegistry
 
ServiceObjectRegistrym_pServiceObjectRegistry
 
BaseObjectFactorym_pBaseObjectFactory
 
ModuleObjectFactorym_pModuleObjectFactory
 
ElemUtils::LoggerManagerm_pLoggerManager
 
DatabaseManagerm_pDatabaseManager
 
std::string m_currentWorkingDirectoryPath
 
EnvironmentConfigurationm_pEnvironmentConfiguration
 

Static Private Attributes

static Partonsm_pInstance = 0
 Private pointer of this class for a unique instance. More...
 

Constructor & Destructor Documentation

◆ ~Partons()

PARTONS::Partons::~Partons ( )
virtual

Default destructor.

◆ Partons()

PARTONS::Partons::Partons ( )
private

Default constructor.

Member Function Documentation

◆ checkMandatoryFiles()

void PARTONS::Partons::checkMandatoryFiles ( )
private

Check if "partons.properties" file path is readable.

Throw exception else.

◆ close()

void PARTONS::Partons::close ( )

Called at the very end of the code.

Send close order to the LoggerManager and wait to the end of the job (flush of the logger buffer) before free memory.

◆ getBaseObjectFactory()

BaseObjectFactory * PARTONS::Partons::getBaseObjectFactory ( ) const

◆ getBaseObjectRegistry()

BaseObjectRegistry * PARTONS::Partons::getBaseObjectRegistry ( ) const

◆ getCurrentWorkingDirectory()

std::string PARTONS::Partons::getCurrentWorkingDirectory ( )

◆ getEnvironmentConfiguration()

EnvironmentConfiguration * PARTONS::Partons::getEnvironmentConfiguration ( ) const

◆ getInstance()

Partons * PARTONS::Partons::getInstance ( )
static

Share a unique pointer of this class.

◆ getLoggerManager()

ElemUtils::LoggerManager * PARTONS::Partons::getLoggerManager ( ) const

◆ getModuleObjectFactory()

ModuleObjectFactory * PARTONS::Partons::getModuleObjectFactory ( ) const

◆ getServiceObjectRegistry()

ServiceObjectRegistry * PARTONS::Partons::getServiceObjectRegistry ( ) const

◆ init()

void PARTONS::Partons::init ( int  argc,
char **  argv 
)

Must be called before any other thing.

It initializes each mandatory bloc in right order.

Parameters
argc
argv

◆ printVersion()

void PARTONS::Partons::printVersion ( ) const
private

Prints information about the version to Logger.

◆ retrieveEnvironmentConfiguration()

void PARTONS::Partons::retrieveEnvironmentConfiguration ( )
private

Retrieve environment configuration.

Member Data Documentation

◆ m_currentWorkingDirectoryPath

std::string PARTONS::Partons::m_currentWorkingDirectoryPath
private

◆ m_pBaseObjectFactory

BaseObjectFactory* PARTONS::Partons::m_pBaseObjectFactory
private

◆ m_pBaseObjectRegistry

BaseObjectRegistry* PARTONS::Partons::m_pBaseObjectRegistry
private

◆ m_pDatabaseManager

DatabaseManager* PARTONS::Partons::m_pDatabaseManager
private

◆ m_pEnvironmentConfiguration

EnvironmentConfiguration* PARTONS::Partons::m_pEnvironmentConfiguration
private

◆ m_pInstance

Partons * PARTONS::Partons::m_pInstance = 0
staticprivate

Private pointer of this class for a unique instance.

◆ m_pLoggerManager

ElemUtils::LoggerManager* PARTONS::Partons::m_pLoggerManager
private

◆ m_pModuleObjectFactory

ModuleObjectFactory* PARTONS::Partons::m_pModuleObjectFactory
private

◆ m_pServiceObjectRegistry

ServiceObjectRegistry* PARTONS::Partons::m_pServiceObjectRegistry
private

◆ PROPERTIES_FILE_NAME

const std::string PARTONS::Partons::PROPERTIES_FILE_NAME = "partons.properties"
static

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