Kernel.h
Go to the documentation of this file.
27/*====================================================================================================================*/
28/*== Guards, Includes ==============================================================================================*/
29/*====================================================================================================================*/
89void addEnumerator(const Libpf::Utility::EnumeratorInterface& ei); // to be called by derived classes only
253Libpf::User::Handle createCase(const std::string &type, const std::string &tag, const std::string &description,
291Libpf::User::Handle createCase(const std::string &type, const std::string &tag, const std::string &description,
307Libpf::User::Handle duplicate(Libpf::User::Handle handle, const std::string &tag, const std::string &description, int &error);
325/*====================================================================================================================*/
326/*== struct KernelImplementation declaration =======================================================================*/
327/*====================================================================================================================*/
356 KernelImplementation(std::string name, std::string description, std::string license, std::string version, std::string defaultType, std::string uuid);
Interface to the CaseDescriptor class.
Interface to the Handle class.
Opaque pointer to a server-side resource i.e. a Case object.
Definition: Handle.h:43
const std::string & version(void)
void addLocale(const std::string &locale)
int setLocale(const std::string &locale)
sets the locale for internationalization; the default value is en
std::string jsonTypeDescriptor(std::string name, int &error)
queries a specific type
const std::vector< Libpf::Core::Enumerator > & listEnumerators(int &error)
queries the available enumerators
void uninitializeKernel(void)
std::string jsonListEnumerators(int &error)
void initializeKernel(void)
std::string errorMessage(int error)
const std::vector< std::string > & supportedLocales(int &error)
query the locales supported by the server side derived classes can re-implement this method to overri...
void setVerbosityGlobal(int verbosity)
const std::string & name(void)
const Libpf::Core::Enumerator * enumerator(const std::string &name, int &error)
queries a specific enumerator
const std::vector< Libpf::Persistency::TypeDescriptor > & listTypes(int &error)
queries the available types
Libpf::User::Handle createCase(const std::string &type, const std::string &tag, const std::string &description, const std::map< std::string, std::string > &stringOptions, const std::map< std::string, int > &integerOptions, int &error)
creates a new case instance
Libpf::User::Handle duplicate(Libpf::User::Handle handle, const std::string &tag, const std::string &description, int &error)
duplicate an existing case instance
const Libpf::Persistency::TypeDescriptor * typeDescriptor(std::string name, int &error)
const std::string & description(void)
@ ERROR_SERVER
server-side error while performing the operation
Definition: Kernel.h:70
const std::string & uuid(void)
const std::string & license(void)
void addEnumerator(const Libpf::Utility::EnumeratorInterface &ei)
Definition: Case.h:35
Describes the capabilities of a service / standalone kernel for a specific simulation domain.
Definition: Kernel.h:336
std::string apiVersion_
UTF-8 encoded string.
Definition: Kernel.h:341
std::string name_
UTF-8 encoded string; acts as URN in the kernel: namespace.
Definition: Kernel.h:337
std::string version_
UTF-8 encoded string.
Definition: Kernel.h:340
std::string license_
UTF-8 encoded string.
Definition: Kernel.h:339
std::vector< Libpf::Core::Enumerator > enumerators_
Definition: Kernel.h:354
std::vector< std::string > supportedLocales_
Definition: Kernel.h:351
std::map< Libpf::User::Handle, Libpf::User::CaseDescriptor > handleMap_
maps handles to the internal data structure that holds all the information to restore the state of a ...
Definition: Kernel.h:349
std::string uuid_
service UUID (Universally Unique Identifier), uniquely identifies a specific service + service versio...
Definition: Kernel.h:344
KernelImplementation(std::string name, std::string description, std::string license, std::string version, std::string defaultType, std::string uuid)
std::string description_
UTF-8 encoded string.
Definition: Kernel.h:338