Singleton class that manages output writing on disk (images, sinograms, etc).
It also manages logging and printing on screen.
More...
#include <sOutputManager.hh>
Singleton class that manages output writing on disk (images, sinograms, etc).
It also manages logging and printing on screen.
Definition at line 171 of file code/include/management/sOutputManager.hh.
◆ sOutputManager() [1/4]
sOutputManager::sOutputManager |
( |
| ) |
|
|
private |
◆ ~sOutputManager() [1/2]
sOutputManager::~sOutputManager |
( |
| ) |
|
|
private |
◆ sOutputManager() [2/4]
◆ sOutputManager() [3/4]
sOutputManager::sOutputManager |
( |
| ) |
|
|
private |
sOutputManager constructor.
It is private at this class is singleton. It should be instanciated using the GetInstance() function Initialize the member variables to their default values.
◆ ~sOutputManager() [2/2]
sOutputManager::~sOutputManager |
( |
| ) |
|
|
private |
◆ sOutputManager() [4/4]
◆ CheckConfigDir() [1/2]
int sOutputManager::CheckConfigDir |
( |
const string & |
a_path | ) |
|
◆ CheckConfigDir() [2/2]
int sOutputManager::CheckConfigDir |
( |
const string & |
a_path | ) |
|
◆ GetBaseName() [1/2]
const string& sOutputManager::GetBaseName |
( |
| ) |
|
|
inline |
◆ GetBaseName() [2/2]
const string & sOutputManager::GetBaseName |
( |
| ) |
|
|
inline |
◆ GetDataFileName() [1/2]
vector<string> sOutputManager::GetDataFileName |
( |
| ) |
|
|
inline |
◆ GetDataFileName() [2/2]
vector< string > sOutputManager::GetDataFileName |
( |
| ) |
|
|
inline |
◆ GetInstance() [1/2]
◆ GetInstance() [2/2]
◆ GetLogFile() [1/2]
ofstream & sOutputManager::GetLogFile |
( |
| ) |
|
|
inline |
◆ GetLogFile() [2/2]
ofstream& sOutputManager::GetLogFile |
( |
| ) |
|
|
inline |
◆ GetPathName() [1/2]
const string& sOutputManager::GetPathName |
( |
| ) |
|
|
inline |
◆ GetPathName() [2/2]
const string & sOutputManager::GetPathName |
( |
| ) |
|
|
inline |
◆ GetPathToConfigDir() [1/2]
const string & sOutputManager::GetPathToConfigDir |
( |
| ) |
|
Return the path to the CASTOR config directory.
Just return the path if it has already been initialized Otherwise, the function recovers the path from environnement variables If any error, the working directory is returned instead
- Returns
- astring containing path to the CASToR configuration directory
Definition at line 145 of file code/src/management/sOutputManager.cc.
◆ GetPathToConfigDir() [2/2]
const string& sOutputManager::GetPathToConfigDir |
( |
| ) |
|
◆ InitOutputDirectory() [1/2]
int sOutputManager::InitOutputDirectory |
( |
const string & |
a_pathFout, |
|
|
const string & |
a_pathDout |
|
) |
| |
◆ InitOutputDirectory() [2/2]
int sOutputManager::InitOutputDirectory |
( |
const string & |
a_pathFout, |
|
|
const string & |
a_pathDout |
|
) |
| |
◆ LogCommandLine() [1/2]
int sOutputManager::LogCommandLine |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
◆ LogCommandLine() [2/2]
int sOutputManager::LogCommandLine |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
◆ MergeDynImages() [1/2]
bool sOutputManager::MergeDynImages |
( |
| ) |
|
|
inline |
◆ MergeDynImages() [2/2]
bool sOutputManager::MergeDynImages |
( |
| ) |
|
|
inline |
Indicate if a dynamic serie of 3D images should be merged in one file (true) or written on disk as one file for each 3D image, associated with an Interfile metaheader.
- Returns
- true if images should be merged in one file, false otherwise.
Definition at line 251 of file code/include/management/sOutputManager.hh.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ SetDataFileName() [1/2]
void sOutputManager::SetDataFileName |
( |
vector< string > |
ap_dataFileName | ) |
|
|
inline |
◆ SetDataFileName() [2/2]
void sOutputManager::SetDataFileName |
( |
vector< string > |
ap_dataFileName | ) |
|
|
inline |
◆ SetMergeDynImagesFlag() [1/2]
void sOutputManager::SetMergeDynImagesFlag |
( |
bool |
a_flag | ) |
|
|
inline |
◆ SetMergeDynImagesFlag() [2/2]
void sOutputManager::SetMergeDynImagesFlag |
( |
bool |
a_flag | ) |
|
|
inline |
◆ SetMPIRank() [1/2]
void sOutputManager::SetMPIRank |
( |
int |
a_mpiRank | ) |
|
|
inline |
◆ SetMPIRank() [2/2]
void sOutputManager::SetMPIRank |
( |
int |
a_mpiRank | ) |
|
|
inline |
◆ SetOutNbPrec() [1/2]
int sOutputManager::SetOutNbPrec |
( |
string |
a_format | ) |
|
◆ SetOutNbPrec() [2/2]
int sOutputManager::SetOutNbPrec |
( |
string |
a_format | ) |
|
◆ SetVerbose() [1/2]
void sOutputManager::SetVerbose |
( |
int |
a_verbose | ) |
|
|
inline |
◆ SetVerbose() [2/2]
void sOutputManager::SetVerbose |
( |
int |
a_verbose | ) |
|
|
inline |
◆ m_baseName
string sOutputManager::m_baseName |
|
private |
◆ m_logFile
ofstream sOutputManager::m_logFile |
|
private |
◆ m_mergeOutputDynImgFlag
bool sOutputManager::m_mergeOutputDynImgFlag |
|
private |
Flag indicating if dynamic image should be written on disk as one file (true), or a serie of 3D image associated with a metaheader (false). Default: false
Definition at line 332 of file code/include/management/sOutputManager.hh.
◆ m_mpiRank
int sOutputManager::m_mpiRank |
|
private |
◆ m_pathName
string sOutputManager::m_pathName |
|
private |
◆ m_pathToConfigDir
string sOutputManager::m_pathToConfigDir |
|
private |
◆ m_verbose
int sOutputManager::m_verbose |
|
private |
◆ mp_dataFileName
vector< string > sOutputManager::mp_dataFileName |
|
private |
◆ mp_Instance
The documentation for this class was generated from the following files: