Go to the documentation of this file.
33 #ifndef registerSwitch_H
34 #define registerSwitch_H
88 #define CONCAT(x, y) x ## y
89 #define CONCAT2(x, y) CONCAT(x, y)
90 #define FILE_UNIQUE(x) CONCAT2(x, __LINE__)
92 #define registerOptSwitch(Name, Type, Switch) \
93 static Foam::RegisterSwitch<Type> FILE_UNIQUE(_addToOpt_) \
94 (Foam::debug::addOptimisationObject, Name, Switch)
97 #define registerInfoSwitch(Name, Type, Switch) \
98 static Foam::RegisterSwitch<Type> FILE_UNIQUE(_addToOpt_) \
99 (Foam::debug::addInfoObject, Name, Switch)
virtual void readData(Foam::Istream &is)
Read.
virtual void writeData(Foam::Ostream &os) const
Write.
RegisterSwitch(void(*registryFn)(const char *name, simpleRegIOobject *), const char *name, Type &optSwitch)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Class and registration macros for InfoSwitches and OptimisationSwitches to support reading from syste...
virtual ~RegisterSwitch()
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
simpleRegIOobject(void(*fn)(const char *name, simpleRegIOobject *), const char *name)
Construct from objectregistry inserter and name.
Abstract base class for registered object with I/O. Used in debug symbol registration.
word name(const complex &)
Return a string representation of a complex.