19 using namespace kome::objects;
24 #define new new( _NORMAL_BLOCK, __FILE__, __LINE__ )
25 #define malloc( s ) _malloc_dbg( s, _NORMAL_BLOCK, __FILE__, __LINE__ )
32 int SampleSet::m_currentSampleSetId = 0;
59 for(
unsigned int i = 0; i <
m_samples.size(); i++ ) {
86 for(
unsigned int i = 0; i <
m_samples.size(); i++ ) {
101 if( sample ==
NULL ) {
105 LOG_WARN( FMT(
"Sample set is different." ) );
138 LOG_DEBUG( FMT(
"Open the raw data. [%s]",
m_filePath.c_str() ) );
158 LOG_ERROR( FMT(
"Failed to open the file.[%s]",
m_filePath.c_str() ) );
171 for(
unsigned int i = 0; i <
m_samples.size(); i++ ) {
199 int sampleSetId = m_currentSampleSetId;
200 m_currentSampleSetId++;
std::string getfilename(const char *path)
get file name
interfaces of ActiveObjectsManager class
group of spectrum management class
SampleSet * getSampleSet()
gets sample set object
bool isOpened()
judges whther this sample set file is opened or not
static double getTotalLoadingTime()
gets total loading time
bool openFile(const char *path, kome::core::Progress *progress=NULL)
opens file
static kome::core::Timer m_loadingTimer
sample information management class
std::vector< Sample * > m_samples
static ActiveObjectsManager & getInstance()
get active object manager object (This is the only object.)
active object management class
virtual bool onOpenFile(const char *path, kome::core::Progress *progress=NULL)=0
This method is called by openFile method. (abstract method)
void setValue(const char *key, const char *value)
sets parameter value
interfaces of SampleSet class
const char * getFileName()
gets file name
static void stopLoadingTimer()
stops loading timer
kome::core::Properties & getProperties()
gets properties
progress display abstract class
virtual bool onCloseFile()=0
This method is called by closeFile method. (abstract method)
interfaces of DataGroupNode class
const unsigned int ERR_OK
int getErrorCode(void)
get error code of file access.
interfaces of Sample class
void clearSamples()
clears samples
#define NVL(checkVal, replaceVal)
Sample * getSample(const unsigned int index)
gets sample object
void addSample(Sample *sample)
adds sample
bool closeFile()
closes file
double getTotalTime()
gets total time
static int issueSampleSetId()
issues sample set ID
unsigned int getNumberOfSamples()
gets the nubmer of samples
int getSampleSetId()
gets the sample set ID
DataGroupNode * getRootDataGroupNode()
gets root spectrum group
void setSampleIndex(const int index)
sets sample index
std::string absolutepath(const char *path)
get absolute path
void setFilePath(const char *path)
sets the file path
static void startLoadingTimer()
starts loading timer
const char * getFilePath()
gets file path
virtual ~SampleSet()
destructor
void setErrorCode(const int errorCode)
set error code of file access.