#include <cassert>
#include <cctype>
#include <cerrno>
#include <climits>
#include <cstdlib>
#include <cstring>
#include "Alignment/Geners/interface/BinaryArchiveBase.hh"
#include "Alignment/Geners/interface/CatalogIO.hh"
#include "Alignment/Geners/interface/binaryIO.hh"
Go to the source code of this file.
|
static bool | parse_int (std::ostringstream &err, const char *c, int *result) |
|
static bool | parse_unsigned (std::ostringstream &err, const char *c, unsigned *result) |
|
#define GENERS_BINARY_ARCHIVE_FORMAT_ID (0x1f2e3d4c) |
static bool parse_int |
( |
std::ostringstream & |
err, |
|
|
const char * |
c, |
|
|
int * |
result |
|
) |
| |
|
static |
Definition at line 35 of file BinaryArchiveBase.cc.
References relativeConstraints::value.
38 const long value = strtol(
c, &endptr, 0);
39 if (errno || *endptr !=
'\0') {
40 err <<
"expected an integer, got \"" <<
c <<
'"';
42 err <<
", " << strerror(errno);
45 if (value < INT_MIN || value > INT_MAX) {
46 err <<
"integer value \"" << c <<
"\" is out of range";
const edm::EventSetup & c
static bool parse_unsigned |
( |
std::ostringstream & |
err, |
|
|
const char * |
c, |
|
|
unsigned * |
result |
|
) |
| |
|
static |
Definition at line 17 of file BinaryArchiveBase.cc.
References relativeConstraints::value.
20 const unsigned long value = strtoul(
c, &endptr, 0);
21 if (errno || *endptr !=
'\0') {
22 err <<
"expected an unsigned integer, got \"" <<
c <<
'"';
24 err <<
", " << strerror(errno);
27 if (value > UINT_MAX) {
28 err <<
"unsigned value \"" << c <<
"\" is out of range";
const edm::EventSetup & c