List of all members.
| 
Public Member Functions | 
|  | TestReader () | 
| virtual std::string | identify (const std::string &filename, const std::string &head) const | 
| virtual void | read (const std::string &filename, const std::string &head, MSData &result, int runIndex=0, const Config &config=Config()) const | 
| virtual void | read (const std::string &filename, const std::string &head, std::vector< MSDataPtr > &results, const Config &config=Config()) const | 
| const char * | getType () const | 
|  | TestReader () | 
| virtual std::string | identify (const std::string &uri, shared_ptr< istream > uriStreamPtr) const | 
| virtual void | read (const std::string &uri, shared_ptr< istream > uriStreamPtr, ProteomeData &pd) const | 
| const char * | getType () const | 
| bool | accept (const std::string &uri, boost::shared_ptr< std::istream > uriStreamPtr) const | 
|  | return true iff Reader recognizes the file as one it should handle 
 | 
| virtual std::string | identify (const std::string &uri, boost::shared_ptr< std::istream > uriStreamPtr) const =0 | 
|  | return file type iff Reader recognizes the file, else empty; 
 | 
| virtual void | read (const std::string &uri, ProteomeData &result) const | 
|  | fill in the ProteomeData structure from a new URI stream 
 | 
| virtual void | read (const std::string &uri, boost::shared_ptr< std::istream > uriStreamPtr, ProteomeData &result) const =0 | 
|  | fill in the ProteomeData structure from a shared URI stream 
 | 
| virtual | ~Reader () | 
| 
Public Attributes | 
| int | count | 
Detailed Description
Definition at line 220 of file MSDataFileTest.cpp.
 
Constructor & Destructor Documentation
  
  | 
        
          | TestReader::TestReader | ( |  | ) |  |  | inline | 
 
 
  
  | 
        
          | TestReader::TestReader | ( |  | ) |  |  | inline | 
 
 
Member Function Documentation
  
  | 
        
          | virtual std::string TestReader::identify | ( | const std::string & | filename, |  
          |  |  | const std::string & | head |  
          |  | ) |  | const |  | inlinevirtual | 
 
Definition at line 226 of file MSDataFileTest.cpp.
References rawHeader_.
    {
        if (filename.size()<=4 || filename.substr(filename.size()-4)!=".RAW")
            return std::string("");
            return std::string("");
        return filename;
    }
 
 
  
  | 
        
          | virtual void TestReader::read | ( | const std::string & | filename, |  
          |  |  | const std::string & | head, |  
          |  |  | MSData & | result, |  
          |  |  | int | runIndex = 0, |  
          |  |  | const Config & | config = Config() |  
          |  | ) |  | const |  | inlinevirtual | 
 
 
  
  | 
        
          | virtual void TestReader::read | ( | const std::string & | filename, |  
          |  |  | const std::string & | head, |  
          |  |  | std::vector< MSDataPtr > & | results, |  
          |  |  | const Config & | config = Config() |  
          |  | ) |  | const |  | inlinevirtual | 
 
 
  
  | 
        
          | const char* TestReader::getType | ( |  | ) | const |  | inlinevirtual | 
 
 
  
  | 
        
          | virtual std::string TestReader::identify | ( | const std::string & | uri, |  
          |  |  | shared_ptr< istream > | uriStreamPtr |  
          |  | ) |  | const |  | inlinevirtual | 
 
Definition at line 144 of file ProteomeDataFileTest.cpp.
    {
        if (!bal::iends_with(uri, ".fasta"))
            return "";
        string buf;
        getline(*uriStreamPtr, buf);
        if (buf[0] != '>')
            return "";
    }
 
 
  
  | 
        
          | virtual void TestReader::read | ( | const std::string & | uri, |  
          |  |  | shared_ptr< istream > | uriStreamPtr, |  
          |  |  | ProteomeData & | pd |  
          |  | ) |  | const |  | inlinevirtual | 
 
 
  
  | 
        
          | const char* TestReader::getType | ( |  | ) | const |  | inlinevirtual | 
 
 
Member Data Documentation
The documentation for this class was generated from the following files: