vector<CBiosampleFieldDiff *> CBiosampleChkApp::ProcessInput (void) { // Process file based on its content // Unless otherwise specifien we assume the file in hand is // a Seq-entry ASN.1 file, other option are a Seq-submit or NCBI // Release file (batch processing) where we process each Seq-entry // at a time. vector<CBiosampleFieldDiff *> diffs; string header = m_In->ReadFileHeader(); if (header == "Seq-submit" ) { // Seq-submit diffs = ProcessSeqSubmit(); } else if ( header == "Seq-entry" ) { // Seq-entry diffs = ProcessSeqEntry(); } else { NCBI_THROW(CException, eUnknown, "Unhandled type " + header); } return diffs; }