#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;
}