sample information management class More...
#include <Sample.h>


Public Member Functions | |
| Sample (SampleSet *sampleSet) | |
| constructor | |
| virtual | ~Sample () |
| destructor | |
| SampleSet * | getSampleSet () |
| gets sample set object More... | |
| void | setSampleIndex (const int index) |
| sets sample index More... | |
| int | getSampleIndex () |
| gets sample index More... | |
| void | setName (const char *name) |
| sets sample name More... | |
| const char * | getName () |
| gets sample name More... | |
| void | setType (const char *type) |
| sets sample type More... | |
| const char * | getType () |
| gets sample type More... | |
| void | setInstrument (const char *instrument) |
| sets instrument name More... | |
| const char * | getInstrument () |
| gets instrument name More... | |
| void | setMsCompany (const char *company) |
| sets MS company More... | |
| const char * | getMsCompany () |
| gets MS company More... | |
| void | setSoftwareName (const char *name) |
| sets software name More... | |
| const char * | getSoftwareName () |
| gets software name More... | |
| void | setSoftwareVersion (const char *version) |
| sets software version More... | |
| const char * | getSoftwareVersion () |
| gets software version More... | |
| void | setOpened (const bool opened) |
| sets opened flag More... | |
| bool | isOpened () |
| judges whther this sample is opened or not More... | |
| void | setEdited (const bool edited) |
| sets edited flag More... | |
| bool | isEdited () |
| judges whther this sample is edited or not More... | |
| DataGroupNode * | getRootDataGroupNode () |
| gets root spectrum group More... | |
| DataSet * | getHiddenDataSet () |
| gets the hidden data set More... | |
| unsigned int | getNumberOfGroups () |
| gets the number of spectrum groups More... | |
| DataGroupNode * | getGroup (const unsigned int index) |
| gets spectrum group More... | |
| void | setParallelReadable (const bool readable) |
| sets parallel readable or not More... | |
| bool | isParallelReadable () |
| gets whether this sample is parallel readable or not More... | |
| bool | openSample (kome::core::Progress *progress=NULL) |
| opens sample [out] progress progressbar to display More... | |
| bool | closeSample () |
| closes sample More... | |
| void | detectPeaksByAPI (Spectrum *spec, Peaks *peaks) |
| detect peaks using Application Progreamming Interface More... | |
| void | setSampleId (int id) |
| set sample id More... | |
| int | getSampleId () |
| get sample id More... | |
| int | issueSpecId () |
| to issue the spectrum id More... | |
| Spectrum * | getSpectrumById (int id) |
| A spectrum is acquired by id. More... | |
| int | issueChromId (Sample *sample) |
| to issue the chromatogram id More... | |
| Chromatogram * | getChromatogramById (int id) |
| A schromatogram is acquired by id. More... | |
| int | issueGroupId (Sample *sample) |
| to issue the group id More... | |
| DataGroupNode * | getGroupById (int id) |
| A DataGroupNode is qcquired by id. More... | |
| bool | isSupportedAPIPeaks () |
| judges whether API peak detection is supported on this sample. More... | |
| void | setSupportedAPIPeaks (const bool supported) |
| sets API peak dtection is supported on this sample. More... | |
Static Public Member Functions | |
| static void | resetId () |
| Reset the ID of the sample. | |
| static bool | isCommonProperty (const char *key) |
| check whther the specified property key is common property or not More... | |
| static int | issueSampleId () |
| to issue the sample id More... | |
| static Sample * | getSampleById (int id) |
| A sample is acquired by id. More... | |
Protected Member Functions | |
| void | getGroups (DataGroupNode *parentGroup=NULL) |
| gets spectrum groups More... | |
| virtual void | onDetectPeaksByAPI (Spectrum *spec, Peaks *peaks) |
| This methos is called by detectPeakByAPI method. | |
| virtual bool | onOpenSample (DataGroupNode *rootGroup, kome::core::Progress *progress)=0 |
| This method is called by openSample method. (abstract method) More... | |
| virtual bool | onCloseSample ()=0 |
| This method is called by closeSample method. (abstract method) More... | |
Protected Attributes | |
| SampleSet * | m_sampleSet |
| int | m_sampleIdx |
| int | m_specId |
| std::string | m_name |
| std::string | m_type |
| std::string | m_instrument |
| std::string | m_company |
| std::string | m_softwareName |
| std::string | m_softwareVersion |
| DataGroupNode * | m_root |
| bool | m_opened |
| bool | m_edited |
| std::vector< DataGroupNode * > | m_groups |
| bool | m_parallelReadable |
| DataSet | m_hiddenSet |
| bool | m_supportedApiPeaks |
Static Protected Attributes | |
| static int | m_optSampleId = 0 |
| static std::vector< std::string > | m_commonProps |
| bool kome::objects::Sample::closeSample | ( | ) |
closes sample
Definition at line 357 of file Sample.cpp.

detect peaks using Application Progreamming Interface
| [in] | spec | spectrum to detect peaks |
| [out] | peaks | peaks object to store peaks information |
Definition at line 384 of file Sample.cpp.

| Chromatogram * kome::objects::Sample::getChromatogramById | ( | int | id | ) |
A schromatogram is acquired by id.
| [in] | id | chromatogram id |
Definition at line 501 of file Sample.cpp.

| DataGroupNode * kome::objects::Sample::getGroup | ( | const unsigned int | index | ) |
gets spectrum group
| [in] | index | spectrum group index |
Definition at line 234 of file Sample.cpp.
| DataGroupNode * kome::objects::Sample::getGroupById | ( | int | id | ) |
A DataGroupNode is qcquired by id.
| [in] | id | group id |
Definition at line 534 of file Sample.cpp.

|
protected |
gets spectrum groups
| [in] | parentGroup | parent spectrum group |
Definition at line 242 of file Sample.cpp.

| DataSet * kome::objects::Sample::getHiddenDataSet | ( | ) |
| const char * kome::objects::Sample::getInstrument | ( | ) |
| const char * kome::objects::Sample::getMsCompany | ( | ) |
| const char * kome::objects::Sample::getName | ( | ) |
| unsigned int kome::objects::Sample::getNumberOfGroups | ( | ) |
gets the number of spectrum groups
Definition at line 229 of file Sample.cpp.
| DataGroupNode * kome::objects::Sample::getRootDataGroupNode | ( | ) |
|
static |
A sample is acquired by id.
| [in] | id | sample id |
Definition at line 447 of file Sample.cpp.

| int kome::objects::Sample::getSampleId | ( | ) |
| int kome::objects::Sample::getSampleIndex | ( | ) |
| SampleSet * kome::objects::Sample::getSampleSet | ( | ) |
| const char * kome::objects::Sample::getSoftwareName | ( | ) |
| const char * kome::objects::Sample::getSoftwareVersion | ( | ) |
| Spectrum * kome::objects::Sample::getSpectrumById | ( | int | id | ) |
A spectrum is acquired by id.
| [in] | id | spectrum id |
Definition at line 470 of file Sample.cpp.

| const char * kome::objects::Sample::getType | ( | ) |
|
static |
check whther the specified property key is common property or not
| [in] | key | parameter key |
Definition at line 389 of file Sample.cpp.
| bool kome::objects::Sample::isEdited | ( | ) |
judges whther this sample is edited or not
Definition at line 214 of file Sample.cpp.
| bool kome::objects::Sample::isOpened | ( | ) |
judges whther this sample is opened or not
Definition at line 204 of file Sample.cpp.
| bool kome::objects::Sample::isParallelReadable | ( | ) |
gets whether this sample is parallel readable or not
Definition at line 276 of file Sample.cpp.
| int kome::objects::Sample::issueChromId | ( | Sample * | sample | ) |
to issue the chromatogram id
| [in] | sample | sample object |
Definition at line 493 of file Sample.cpp.
| int kome::objects::Sample::issueGroupId | ( | Sample * | sample | ) |
to issue the group id
| [in] | sample | sample object |
Definition at line 526 of file Sample.cpp.
|
static |
to issue the sample id
Definition at line 426 of file Sample.cpp.

| int kome::objects::Sample::issueSpecId | ( | ) |
| bool kome::objects::Sample::isSupportedAPIPeaks | ( | ) |
judges whether API peak detection is supported on this sample.
Definition at line 546 of file Sample.cpp.
|
protectedpure virtual |
This method is called by closeSample method. (abstract method)
Implemented in kome::operation::ManipulatedSample.
|
protectedpure virtual |
This method is called by openSample method. (abstract method)
| [out] | rootGroup | root spectrum group [out] progress progressbar to display |
Implemented in kome::operation::ManipulatedSample.
| bool kome::objects::Sample::openSample | ( | kome::core::Progress * | progress = NULL | ) |
opens sample [out] progress progressbar to display
Definition at line 281 of file Sample.cpp.

| void kome::objects::Sample::setEdited | ( | const bool | edited | ) |
| void kome::objects::Sample::setInstrument | ( | const char * | instrument | ) |
sets instrument name
| [in] | instrument | instrument name |
Definition at line 122 of file Sample.cpp.

| void kome::objects::Sample::setMsCompany | ( | const char * | company | ) |
sets MS company
| [in] | company | MS company |
Definition at line 157 of file Sample.cpp.

| void kome::objects::Sample::setName | ( | const char * | name | ) |
sets sample name
| [in] | name | sample name |
Definition at line 92 of file Sample.cpp.

| void kome::objects::Sample::setOpened | ( | const bool | opened | ) |
| void kome::objects::Sample::setParallelReadable | ( | const bool | readable | ) |
sets parallel readable or not
| [in] | readable | If true, this sample is parallel readabale. |
Definition at line 271 of file Sample.cpp.
| void kome::objects::Sample::setSampleId | ( | int | id | ) |
| void kome::objects::Sample::setSampleIndex | ( | const int | index | ) |
| void kome::objects::Sample::setSoftwareName | ( | const char * | name | ) |
sets software name
| [in] | name | software name |
Definition at line 171 of file Sample.cpp.

| void kome::objects::Sample::setSoftwareVersion | ( | const char * | version | ) |
sets software version
| [in] | version | software version |
Definition at line 185 of file Sample.cpp.

| void kome::objects::Sample::setSupportedAPIPeaks | ( | const bool | supported | ) |
sets API peak dtection is supported on this sample.
| [in] | supported | If true, API peak detection is supported. |
Definition at line 551 of file Sample.cpp.
| void kome::objects::Sample::setType | ( | const char * | type | ) |
sets sample type
| [in] | type | sample type |
Definition at line 107 of file Sample.cpp.

|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
1.8.6