ProteoWizard
Functions | Variables
ExtendedReadTest.cpp File Reference
#include "IdentDataFile.hpp"
#include "DefaultReaderList.hpp"
#include "IO.hpp"
#include "pwiz/utility/misc/Std.hpp"

Go to the source code of this file.

Functions

void testFile (const string &inFilepath, const string &outFilepath)
int main (int argc, char *argv[])

Variables

const char * filenames []

Function Documentation

void testFile ( const string &  inFilepath,
const string &  outFilepath 
)

Definition at line 45 of file ExtendedReadTest.cpp.

References pwiz::identdata::IdentDataFile::write().

Referenced by main().

{
cout << "reading file in from " << inFilepath << endl;
IdentDataFile mzid(inFilepath);
cout << "writing file out to " << outFilepath << endl;
mzid.write(outFilepath);
cout << "done.\n";
}
int main ( int  argc,
char *  argv[] 
)

Definition at line 56 of file ExtendedReadTest.cpp.

References e(), TEST_EPILOG, TEST_FAILED, TEST_PROLOG, and testFile().

{
TEST_PROLOG(argc, argv)
try
{
if (argc == 3)
testFile(argv[1], argv[2]);
else
{
cout << "only have " << argc << " arguments:\n";
for(int i=0; i<argc; i++)
cout << argv[i] << endl;
}
cout << "\nhttp://proteowizard.sourceforge.net\n"
<< "support@proteowizard.org\n";
}
catch (exception& e)
{
TEST_FAILED(e.what())
}
catch (...)
{
TEST_FAILED("Caught unknown exception.")
}
}

Variable Documentation

const char* filenames[]
Initial value:
{
"Mascot_MSMS_example.mzid",
"omssa_example_full.mzid",
"Mascot_mzml_example.mzid",
"PMF_example.mzid",
"Mascot_N15_example.mzid",
"Sequest_example.mzid",
"Mascot_NA_example.mzid",
"spectraST.mzid",
"Mascot_top_down_example.mzid",
"xtandem_example_full.mzid",
"MPC_example.mzid"
}

Definition at line 30 of file ExtendedReadTest.cpp.

Referenced by main(), and test().