#include <hdffilemetadata.h>
List of all members.
Detailed Description
Give methods to read and access to the metadata of an HDF file. For that, build a tree with those metadata.
- Author:
- Nicolas PASCAL
Constructor & Destructor Documentation
HDFFileMetaData::HDFFileMetaData |
( |
const Hdf_file * |
_hdf_file = NULL |
) |
|
Constructor
- Parameters:
-
| _hdf_file | a pointer to an hdf file instance |
HDFFileMetaData::HDFFileMetaData |
( |
const char * |
_hdf_file_name = NULL |
) |
|
Constructor
- Parameters:
-
| _hdf_file_name | the hdf file to read |
HDFFileMetaData::HDFFileMetaData |
( |
const std::string & |
_hdf_file_name = NULL |
) |
|
Constructor
- Parameters:
-
| _hdf_file_name | the hdf file to read |
HDFFileMetaData::~HDFFileMetaData |
( |
|
) |
|
Member Function Documentation
const bool HDFFileMetaData::get_tree_value |
( |
void * |
val, |
|
|
const string & |
tag_name | |
|
) |
| | |
find the first node in the metadata tree having the tag "tag_name". In fact, it finds the first leaf that is child of the node called tag_name.
- Parameters:
-
| val | the value to write (must be of the good type) |
| tag_name | the tag we are searching for the value |
- Returns:
- true if the value was found
const bool HDFFileMetaData::get_tree_value_string |
( |
string & |
val, |
|
|
const string & |
tag_name | |
|
) |
| | |
find the first node in the metadata tree having the tag "tag_name". In fact, it finds the first leaf that is child of the node called tag_name.
- Parameters:
-
| val | the value to write |
| tag_name | the tag we are searching for the value |
- Returns:
- true if the value was found
void HDFFileMetaData::get_value |
( |
void * |
val, |
|
|
const char * |
tag_name = "GRANULEID" | |
|
) |
| | |
void HDFFileMetaData::to_xml |
( |
const char * |
output_filename = NULL , |
|
|
const bool |
overwrite = false | |
|
) |
| | |
Dump the metadata to an XML file
- Parameters:
-
| output_filename | the name of the output xml file. If not given, add the extension, and if NULL, build the output name with the pattern : "input_file_without_extension"+".xml" |
| overwrite | when true, if the output file already exists, overwrite it. (and so, if false, don't) |
void HDFFileMetaData::view_tree |
( |
|
) |
|
The documentation for this class was generated from the following files:
- /home/pascal/depot/filedata/src/hdffilemetadata.h
- /home/pascal/depot/filedata/src/hdffilemetadata.cpp