Mass++ mzML IO Plugin v2.7.5
 All Classes Namespaces Files Functions Variables Enumerations
MzmlSample.h
Go to the documentation of this file.
1 
12 #ifndef __KOME_IO_MZML_SAMPLE_H__
13 #define __KOME_IO_MZML_SAMPLE_H__
14 
15 
16 namespace kome {
17  namespace io {
18  namespace mzml {
19 
20  class MzmlSampleSet;
21 
26  class MzmlSample : public kome::objects::Sample {
27  public:
33  MzmlSample( MzmlSampleSet* sampleSet );
34 
39  virtual ~MzmlSample();
40 
41  public:
44 
46  std::vector< std::string > m_parentFiles;
47 
48  public:
53  struct ArrayInfo {
54  std::string name;
55  int bits;
56  bool compressed;
57  double scale;
58  bool isY;
59  };
60 
61  protected:
63  std::vector< ArrayInfo > m_arrayInfo;
64 
65  public:
72 
73  public:
79  void addParentFile( const char* path );
80 
86  unsigned int getNumberOfParentFiles();
87 
94  const char* getParentFilePath( const unsigned int index );
95 
96  public:
112  void addArrayInfo(
113  const char* name,
114  const int bits,
115  const bool compressed,
116  const double scale,
117  const bool isY
118  );
119 
126  ArrayInfo* getArrayInfo( const char* name );
127 
128  protected:
135  virtual bool onOpenSample( kome::objects::DataGroupNode* rootGroup, kome::core::Progress* progress = NULL );
136 
142  virtual bool onCloseSample();
143  };
144  }
145  }
146 }
147 
148 
149 #endif // __KOME_IO_MZML_SAMPLE_H__
MzmlSampleSet * getMzmlSampleSet()
gets mzML sample set object
Definition: MzmlSample.cpp:65
virtual bool onOpenSample(kome::objects::DataGroupNode *rootGroup, kome::core::Progress *progress=NULL)
This method is called by openTreatment method. (override method)
Definition: MzmlSample.cpp:130
std::vector< ArrayInfo > m_arrayInfo
Definition: MzmlSample.h:63
MzmlSampleSet * m_sampleSet
Definition: MzmlSample.h:43
mzML sample set class
Definition: MzmlSampleSet.h:24
ArrayInfo * getArrayInfo(const char *name)
gets array information
Definition: MzmlSample.cpp:111
unsigned int getNumberOfParentFiles()
gets the number of parent files
Definition: MzmlSample.cpp:70
std::vector< std::string > m_parentFiles
Definition: MzmlSample.h:46
const char * getParentFilePath(const unsigned int index)
gets parent file path
Definition: MzmlSample.cpp:75
virtual bool onCloseSample()
This method is called by closeTreatment method. (override method)
Definition: MzmlSample.cpp:139
void addArrayInfo(const char *name, const int bits, const bool compressed, const double scale, const bool isY)
adds array information
Definition: MzmlSample.cpp:83
virtual ~MzmlSample()
destructor
Definition: MzmlSample.cpp:39
MzmlSample(MzmlSampleSet *sampleSet)
constructor
Definition: MzmlSample.cpp:31
mzML sample class
Definition: MzmlSample.h:26
void addParentFile(const char *path)
adds parent files
Definition: MzmlSample.cpp:43