#include <mbb2-free-trader.hpp>
Inheritance diagram for mbb2FreeTrader:
Definition at line 40 of file mbb2-free-trader.hpp.
Public Member Functions | |
mbb2FreeTrader () | |
void | XMLout (FILE *fout) |
mbb2FreeTrader::mbb2FreeTrader | ( | ) |
Class constructor
Definition at line 27 of file mbb2-free-trader.cpp.
References book2Ship::addHull().
Here is the call graph for this function:
void mbb2FreeTrader::XMLout | ( | FILE * | fout | ) | [virtual] |
Send well formed (I hope!) XML to a file.
fout | pointer to a file buffer/handle to write XML to. |
Reimplemented from mbShip.
Definition at line 31 of file mbb2-free-trader.cpp.
00031 { 00032 fprintf(fout,"\t\t%s\n",createStartElement(MB_TAG)); 00033 fprintf(fout,"\t\t\t%s%s%s\n", 00034 createStartElement(MB_TYPE), 00035 MB_FREE_TRADER, 00036 createEndElement(MB_TYPE)); 00037 fprintf(fout,"\t\t\t%s%d%s\n", 00038 createStartElement(MB_AGE), 00039 this->getAge(), 00040 createEndElement(MB_AGE)); 00041 fprintf(fout,"\t\t%s\n",createEndElement(MB_TAG)); 00042 00043 }