#include <iostream>
int main(int argc, char* argv[])
{
if (argc != 2)
{
std::cerr << "Usage: " << argv[0] << " <odimh5file>" << std::endl;
return -1;
}
try
{
odimobj = factory->
open(argv[1]);
std::vector<std::pair<float,float> > angles;
tempo1 = tempi[0];
tempo2 = tempi[1];
std::cout << "Lettura eseguita!" << std::endl;
}
catch (std::exception& stde)
{
std::cerr << "Errore di esecuzione: " << stde.what() << std::endl;
}
catch (...)
{
std::cerr << "Errore sconosciuto" << std::endl;
}
delete odimobj;
delete factory;
return 0;
}
Azimuth angles pair.
Definition: odimh5v20_support.hpp:338
OdimH5 objects factory.
Definition: odimh5v20_factory.hpp:50
virtual OdimObject * open(const std::string &path)
Get a OdimH5 object from an existing file.
Definition: odimh5v20_factory.cpp:112
Generic OdimH5 v2.0 object.
Definition: odimh5v20_classes.hpp:95
virtual time_t getDateTime()
Get the joined value of 'date' and 'time' attributes.
Definition: odimh5v20_classes.cpp:296
virtual std::string getObject()
Get the value of 'object' attribute.
Definition: odimh5v20_classes.cpp:292
virtual MetadataGroup * getWhat()
Get the WHAT attributes group.
Definition: odimh5v20_classes.cpp:172
Namespace related to ODIMH5 version 2.0.
Definition: odimh5v20.hpp:46
Main header file of the library.