User custom data base structure. More...
#include <DetectorComponent.h>
Public Member Functions | |
DetectorUserData (const std::string &) | |
Construct the user data according to an string read from configuration. More... | |
User custom data base structure.
The idea of this structure is to allow the users define a custom data for each type of detector component.
Note that DetectorComponent (which works is a CRTP fashion) uses its own template argument to feed this class with it; and then this class will be instantiated for each actual detector component.
The call to the GetUserData will look for a datum in the manager hierarchy, give it to the Load function (defined in the spacialized classs) which will load the specialized structure.
Somewhat related to this is the following article "Why Not Specialize Function Templates?" by Herb Sutter Appeared in C/C++ Users Journal, 19(7), July 2001. http://www.gotw.ca/publications/mill17.htm
Definition at line 45 of file DetectorComponent.h.
|
inline |
Construct the user data according to an string read from configuration.
mngrData | Datum read from the manager hierarchy. |
Definition at line 51 of file DetectorComponent.h.
References WARNING.