Debian Codegraph @

examples/ExtBaseIO.cc

raw
1 // This example works only if C++11 is supported
2 #include "geners/CPP11_config.hh"
3 #ifdef CPP11_STD_AVAILABLE
4
5 // Header file for the factory
6 #include "ExtBaseIO.hh"
7
8 // Header file for all I/O wrapper classes
9 #include "ExtDerivedAIO.hh"
10 #include "ExtDerivedBIO.hh"
11
12 // Register the I/O wrappers with the factory
13 IOFactoryForExtBase::IOFactoryForExtBase()
14 {
15 registerWrapper<ExtDerivedAIO>();
16 registerWrapper<ExtDerivedBIO>();
17 }
18
19 // Note that it is also possible to register wrappers in any
20 // other place in the code (but before performing I/O for the
21 // affected wrapped classes) by calling
22 //
23 // StaticIOFactoryForExtBase::registerWrapper<SomeWrapperClass>();
24
25 #endif // CPP11_STD_AVAILABLE