sample set information management class More...
#include <SampleSet.h>

Public Member Functions | |
| SampleSet () | |
| constructor | |
| virtual | ~SampleSet () |
| destructor | |
| int | getSampleSetId () |
| gets the sample set ID More... | |
| void | setFilePath (const char *path) |
| sets the file path More... | |
| const char * | getFilePath () |
| gets file path More... | |
| const char * | getFileName () |
| gets file name More... | |
| bool | isOpened () |
| judges whther this sample set file is opened or not More... | |
| int | getErrorCode (void) |
| get error code of file access. More... | |
| void | setErrorCode (const int errorCode) |
| set error code of file access. More... | |
| void | clearSamples () |
| clears samples | |
| void | addSample (Sample *sample) |
| adds sample More... | |
| unsigned int | getNumberOfSamples () |
| gets the nubmer of samples More... | |
| Sample * | getSample (const unsigned int index) |
| gets sample object More... | |
| bool | openFile (const char *path, kome::core::Progress *progress=NULL) |
| opens file More... | |
| bool | closeFile () |
| closes file More... | |
| virtual bool | onOpenSample (Sample *sample, kome::core::Progress *progress=NULL)=0 |
| This method is called by openSample method. (abstract method) More... | |
| virtual bool | onCloseSample (Sample *sample)=0 |
| This method is called by closeSample method. (abstract method) More... | |
Static Public Member Functions | |
| static void | startLoadingTimer () |
| starts loading timer | |
| static void | stopLoadingTimer () |
| stops loading timer | |
| static double | getTotalLoadingTime () |
| gets total loading time More... | |
| static int | issueSampleSetId () |
| issues sample set ID More... | |
Protected Member Functions | |
| virtual bool | onOpenFile (const char *path, kome::core::Progress *progress=NULL)=0 |
| This method is called by openFile method. (abstract method) More... | |
| virtual bool | onCloseFile ()=0 |
| This method is called by closeFile method. (abstract method) More... | |
Protected Attributes | |
| std::string | m_filePath |
| std::string | m_fileName |
| std::vector< Sample * > | m_samples |
| bool | m_opened |
| int | m_errorCode |
| int | m_sampleSetId |
Static Protected Attributes | |
| static kome::core::Timer | m_loadingTimer |
| static int | m_currentSampleSetId = 0 |
sample set information management class
Definition at line 29 of file SampleSet.h.
| void kome::objects::SampleSet::addSample | ( | Sample * | sample | ) |
adds sample
| [in] | sample | sample object to be added |
Definition at line 99 of file SampleSet.cpp.

| bool kome::objects::SampleSet::closeFile | ( | ) |
closes file
Definition at line 165 of file SampleSet.cpp.

| int kome::objects::SampleSet::getErrorCode | ( | void | ) |
| const char * kome::objects::SampleSet::getFileName | ( | ) |
| const char * kome::objects::SampleSet::getFilePath | ( | ) |
| unsigned int kome::objects::SampleSet::getNumberOfSamples | ( | ) |
gets the nubmer of samples
Definition at line 115 of file SampleSet.cpp.
| Sample * kome::objects::SampleSet::getSample | ( | const unsigned int | index | ) |
gets sample object
| [in] | index | sample index |
Definition at line 120 of file SampleSet.cpp.
| int kome::objects::SampleSet::getSampleSetId | ( | ) |
|
static |
gets total loading time
Definition at line 193 of file SampleSet.cpp.

| bool kome::objects::SampleSet::isOpened | ( | ) |
judges whther this sample set file is opened or not
Definition at line 79 of file SampleSet.cpp.
|
static |
|
protectedpure virtual |
This method is called by closeFile method. (abstract method)
|
pure virtual |
This method is called by closeSample method. (abstract method)
| [in,out] | sample | sample object to be closed (If NULL, closes all samples.) |
|
protectedpure virtual |
This method is called by openFile method. (abstract method)
| [in] | path | file path |
| [out] | progress | progress bar dialog |
|
pure virtual |
This method is called by openSample method. (abstract method)
| [in,out] | sample | sample object to be opened (If NULL, opens all samples.) |
| [out] | progress | progress bar dialog |
| bool kome::objects::SampleSet::openFile | ( | const char * | path, |
| kome::core::Progress * | progress = NULL |
||
| ) |
opens file
| [in] | path | file path |
| [out] | progress | progress bar dialog |
Definition at line 128 of file SampleSet.cpp.

| int kome::objects::SampleSet::setErrorCode | ( | const int | errorCode | ) |
set error code of file access.
| [in] | errorCode | error code |
Definition at line 213 of file SampleSet.cpp.
| void kome::objects::SampleSet::setFilePath | ( | const char * | path | ) |
sets the file path
| [in] | path | file path |
Definition at line 56 of file SampleSet.cpp.

|
protected |
error code of file access
Definition at line 61 of file SampleSet.h.
|
protected |
file name
Definition at line 48 of file SampleSet.h.
|
protected |
file path
Definition at line 45 of file SampleSet.h.
|
staticprotected |
loading timer
Definition at line 57 of file SampleSet.h.
|
protected |
opened flag
Definition at line 54 of file SampleSet.h.
|
protected |
samples
Definition at line 51 of file SampleSet.h.
|
protected |
sample set ID
Definition at line 65 of file SampleSet.h.
1.8.6