API for the DtMyParser class. More...
Go to the source code of this file.
Typedefs | |
typedef struct DtMyParser | DtMyParser |
Functions | |
void | dt_my_parser_delete (DtMyParser *parser) |
Destructor for DtMyParser class. More... | |
DtMyParser * | dt_my_parser_new (const char *filename) |
Constructor for DtMyParser class. More... | |
DtMyParser * | dt_my_parser_new_from_fh (FILE *file) |
Constructor for DtMyParser class. More... | |
DtMyObject * | dt_my_parser_next_object (DtMyParser *parser) |
Retrieve the next object from the data file. More... | |
API for the DtMyParser class.
The DtMyParser class is used for parsing DtMyObjects from data files.
void dt_my_parser_delete | ( | DtMyParser * | parser | ) |
Destructor for DtMyParser class.
parser | parser object to be destroyed |
DtMyParser* dt_my_parser_new | ( | const char * | filename | ) |
Constructor for DtMyParser class.
filename | path of the data file to be parsed |
DtMyParser* dt_my_parser_new_from_fh | ( | FILE * | file | ) |
Constructor for DtMyParser class.
Alternative constructor for the DtMyParser class, using a filehandle instead of a filename. The user is responsible to close the file handle after destroying this object.
file | handle to the data file to be parsed |
DtMyObject* dt_my_parser_next_object | ( | DtMyParser * | parser | ) |
Retrieve the next object from the data file.
parser | parser object |