/*************************************************************************** B10.CPP XNA USAGE EXAMPLE ------------------- A simple example of how to use B10.CPP to read and write a fasta file and XML file using the XNA class. Compile example: g++ exampleXNAuse.cpp -o test.exe *******************************************************************************/ #include #include "XNA.h" #include "xmlParser.cpp" int main(int argc, char** argv) { if (argc < 4) { std::cerr << "Usage: fasta-input-file fasta-output-file XML-input-file" << std::endl; return EXIT_FAILURE; } char* finFSA=argv[1]; char* fout=argv[2]; char* finXML=argv[3]; XNA s1; s1.readFasta(finFSA); s1.readXML(finXML); // to find the number of sequence in class: int numberOfSequences=s1.chain.size(); cout << numberOfSequences << endl; for (int i=0; i