23 int main(
int argc,
char **argv)
33 JParser<> zap(
"Auxiliary program to print UUID.");
40 catch(
const exception &error) {
41 FATAL(error.what() << endl);
44 if (inputFile !=
"") {
48 gErrorIgnoreLevel = kError;
50 TFile* file = TFile::Open(inputFile.c_str(),
"EXISTS");
53 file->GetUUID().Print();
61 ifstream in(inputFile.c_str());
65 if (in >> comment && comment.
hasUUID())
66 cout << comment.
getUUID() << endl;
81 for (
string buffer; in >> c && c == JComment::START_COMMENT; ) {
89 cout << comment.
getUUID() << endl;
98 cout << JUUID::rndm() << endl;
Specifications of file name extensions.
General purpose messaging.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Binary buffered file input.
Utility class to parse command line options.
int main(int argc, char **argv)
static const char *const KM3NET_DETECTOR_FILE_FORMAT
KM3NeT standard ASCII format
static const char *const BINARY_DETECTOR_FILE_FORMAT[]
JIO binary file format.
std::string getFilenameExtension(const std::string &file_name)
Get file name extension, i.e. part after last JEEP::FILENAME_SEPARATOR if any.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
static const char *const ASCII_FILE_FORMAT
file name extension ASCII format
static const char *const ROOT_FILE_FORMAT
file name extension ROOT format