dumps contents of database in text form
More...
#include <lti_metadataDumper.h>
This class writes the given database in ASCII text, readable format to a stream or stdout.
Definition at line 35 of file lti_metadataDumper.h.
This constructor creates an LTIMetadataWriter which will pretty-print the records in the database to a stream or to stdout.
- Parameters
-
database | the database to write from |
stream | the stream to write to; if NULL, will write to stdout |
abbreviated | dump only the first several elements of each record |
LTIMetadataDumper::~LTIMetadataDumper |
( |
) | |
|
void LTIMetadataDumper::setWriteInputFilename |
( |
bool |
enable) | |
|
Control if the IMAGE::INPUT_NAME tag is written out. This can useful for certain debugging and validation situations.
The default is to always write the INPUT_NAME tag.
- Parameters
-
enable | set to true to not skip the INPUT_NAME tag |
LT_STATUS LTIMetadataDumper::writeFormatted |
( |
bool |
isShapefile = false ) | |
const |
This function writes (pretty-prints) the given record to the stream.
It is public and static because it is useful on its own for debugging.
- Parameters
-
record | the record to write |
stream | the stream to write to |
abbreviated | dump only the first several elements of the record |
- Returns
- status code indicating success or failure
This function writes (pretty-prints) the given data item of a record to the stream.
- Parameters
-
record | the record to write |
stream | the stream to write to |
idx | the index of the data item to write |
- Returns
- status code indicating success or failure
The documentation for this class was generated from the following file: