#include <iostream>
int main(int argc, char* argv[])
{
if (argc != 2)
{
std::cerr << "Usage: " << argv[0] << " <odimh5file>" << std::endl;
return -1;
}
try
{
bool variabile_booleana = true;
char variabile_char = -128;
short variabile_short = -32000;
int variabile_int = 2000000000;
float variabile_float = 1.2f;
std::vector<bool> bools;
bools.push_back(true);
bools.push_back(false);
bools.push_back(true);
std::vector<int> ints;
ints.push_back(1);
ints.push_back(2);
ints.push_back(3);
std::vector<double> doubles;
doubles.push_back(1);
doubles.push_back(2);
doubles.push_back(3);
std::vector<std::string> strings;
strings.push_back("stringa 1");
strings.push_back("stringa 2");
strings.push_back("stringa 3");
std::pair<float,float> coppiafloat(7. , 8.);
std::vector<std::pair<float,float> > angles;
angles.push_back( std::pair<float,float>(1. , 2.) );
angles.push_back( std::pair<float,float>(3. , 4.) );
angles.push_back( std::pair<float,float>(5. , 6.) );
angles.push_back( coppiafloat );
std::vector<AZTimes> tempi;
tempi.push_back(tempo1);
tempi.push_back(tempo2);
std::cerr << "Scrittura eseguita!" << std::endl;
}
catch (std::exception& stde)
{
std::cerr << "Errore di esecuzione: " << stde.what() << std::endl;
}
catch (...)
{
std::cerr << "Errore sconosciuto" << std::endl;
}
delete volume;
delete factory;
return 0;
}
Azimuth angles pair.
Definition odimh5v20_support.hpp:338
double start
Start azimuth time (seconds.milliseconds)
Definition odimh5v20_support.hpp:345
double stop
Start azimuth time (seconds.milliseconds)
Definition odimh5v20_support.hpp:351
OdimH5 objects factory.
Definition odimh5v20_factory.hpp:50
virtual PolarVolume * createPolarVolume(const std::string &path)
Create a new OdimH5 PVOL object and the associated file.
Definition odimh5v20_factory.cpp:165
virtual void setDateTime(const time_t val)
Set the value of 'date' and 'time' attributes.
Definition odimh5v20_classes.cpp:297
virtual MetadataGroup * getWhat()
Get the WHAT attributes group.
Definition odimh5v20_classes.cpp:172
virtual void setObject(const std::string &val)
Set the value of 'object' attribute.
Definition odimh5v20_classes.cpp:293
OdimH5 v2.0 Polar Volume.
Definition odimh5v20_classes.hpp:846
virtual void setLongitude(double val)
Set the value of 'longitude' attribute.
Definition odimh5v20_classes.cpp:1016
Namespace related to ODIMH5 version 2.0.
Definition odimh5v20.hpp:46
Main header file of the library.