Mass++ mzML IO Plugin v2.7.5
 All Classes Namespaces Files Functions Variables Enumerations
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
kome::io::mzml::MzmlSampleSet Class Reference

mzML sample set class More...

#include <MzmlSampleSet.h>

Inheritance diagram for kome::io::mzml::MzmlSampleSet:
Inheritance graph
[legend]
Collaboration diagram for kome::io::mzml::MzmlSampleSet:
Collaboration graph
[legend]

Public Member Functions

 MzmlSampleSet ()
 constructor
 
virtual ~MzmlSampleSet ()
 destructor
 
FILE * getFile ()
 gets file descriptor More...
 
virtual bool onOpenSample (kome::objects::Sample *sample, kome::core::Progress *progress=NULL)
 This method is called by openTreatment method. (override method) More...
 
virtual bool onCloseSample (kome::objects::Sample *sample)
 This method is called by closeTreatment method. (override method) More...
 

Protected Member Functions

virtual bool onOpenFile (const char *path, kome::core::Progress *progress=NULL)
 This method is called by openFile method. (override method) More...
 
virtual bool onCloseFile ()
 This method is called by closeFile method. (override method) More...
 

Protected Attributes

FILE * m_fp
 

Detailed Description

mzML sample set class

Definition at line 24 of file MzmlSampleSet.h.

Member Function Documentation

FILE * kome::io::mzml::MzmlSampleSet::getFile ( )

gets file descriptor

Returns
file descriptor

Definition at line 39 of file MzmlSampleSet.cpp.

39  {
40  return m_fp;
41 }
bool kome::io::mzml::MzmlSampleSet::onCloseFile ( )
protectedvirtual

This method is called by closeFile method. (override method)

Parameters
pathfile path
Returns
If true, it succeeded to close the file

Definition at line 53 of file MzmlSampleSet.cpp.

53  {
54  if( m_fp != NULL ) {
55  fclose( m_fp );
56  m_fp = NULL;
57  }
58  return true;
59 }
bool kome::io::mzml::MzmlSampleSet::onCloseSample ( kome::objects::Sample *  sample)
virtual

This method is called by closeTreatment method. (override method)

Parameters
samplesample object to be closed (If NULL, closes all samples.)
Returns
If true, it succeeded to close the sample.

Definition at line 71 of file MzmlSampleSet.cpp.

71  {
72  if( m_fp != NULL ) {
73  fclose( m_fp );
74  m_fp = NULL;
75  }
76  return true;
77 }
bool kome::io::mzml::MzmlSampleSet::onOpenFile ( const char *  path,
kome::core::Progress *  progress = NULL 
)
protectedvirtual

This method is called by openFile method. (override method)

Parameters
pathfile path
progress
Returns
If true, it succeeded to open the file

Definition at line 44 of file MzmlSampleSet.cpp.

44  { // add param @date 2014.07.08 <Mod> M.Izumi
45  // create sample
46  MzmlSample* sample = new MzmlSample( this );
47  addSample( sample );
48 
49  return true;
50 }
mzML sample class
Definition: MzmlSample.h:26
bool kome::io::mzml::MzmlSampleSet::onOpenSample ( kome::objects::Sample *  sample,
kome::core::Progress *  progress = NULL 
)
virtual

This method is called by openTreatment method. (override method)

Parameters
samplesample object to be opened (If NULL, opens all samples.)
Returns
If true, it succeeded to open the sample.

Definition at line 62 of file MzmlSampleSet.cpp.

62  { // add param @date 2014.07.08 <Mod> M.Izumi
63  if( m_fp == NULL ) {
64  m_fp = fileopen( getFilePath(), "r" );
65  }
66 
67  return ( m_fp != NULL );
68 }

Member Data Documentation

FILE* kome::io::mzml::MzmlSampleSet::m_fp
protected

file descriptor

Definition at line 40 of file MzmlSampleSet.h.


The documentation for this class was generated from the following files: