19 __A__(
const char* buffer) :
std::string(buffer) {}
26 __B__(
const char* buffer) : __A__(buffer) {}
33 __C__(
const char* buffer) : __B__(buffer) {}
44 int main(
int argc,
char **argv)
52 JParser<> zap(
"Example program to test object referencing.");
58 catch(
const exception &error) {
59 FATAL(error.what() << endl);
68 object = string(
"aap");
70 object.set(
string(
"noot"));
73 object.get<
string>() +=
" says ";
76 object->append(
"\"hello world\"");
78 cout <<
object << endl;
83 public JTemplate<JTYPELIST<std::string, float, int>::typelist>
88 object.
get<
string>() =
"abc";
89 object.get<
int>() = -1;
90 object.get<
float>() = -0.99;
93 object.set(
string(
"aap noot mies"));
94 object.set<
true>(
"hello world");
99 cout <<
object << endl;
105 object.
get<__A__>() =
"a";
106 object.get<__B__>() =
"b";
107 object.get<__C__>() =
"c";
109 cout <<
object.get<__C__>()
111 <<
object.get<__A__, true>()
General purpose messaging.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
int main(int argc, char **argv)
Auxiliary class to alleviate the diamond problem due to multiple inheritance.
Utility class to parse command line options.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary class for managing multiple objects.
const T & get() const
Get reference to object.