18 std::cout <<
"__A__()" << std::endl;
23 std::cout <<
"~__A__()" << std::endl;
35 int main(
int argc,
char **argv)
43 JParser<> zap(
"Example program to test single pointer.");
49 catch(
const exception &error) {
50 FATAL(error.what() << endl);
62 DEBUG(
"JSinglePointer::create()" << endl);
68 for (
int i = 0; i != N; ++i) {
70 DEBUG(
"buffer.push_back() " << i << endl);
75 for (
int i = 0; i != N; ++i) {
76 DEBUG(
"buffer[" << i <<
"] is valid? " << buffer[i].
is_valid() << endl);
79 for (
int i = 0; i != N; ++i) {
General purpose messaging.
#define DEBUG(A)
Message macros.
#define ASSERT(A,...)
Assert macro.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
int main(int argc, char **argv)
The template JSinglePointer class can be used to hold a pointer to an object.
Utility class to parse command line options.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
bool is_valid(const json &js)
Check validity of JSon data.