DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
OKS method implementation class. More...
#include <method.hpp>
Public Member Functions | |
OksMethodImplementation (const std::string &language, const std::string &prototype, const std::string &body, OksMethod *p=nullptr) | |
OKS method implementation constructor. | |
bool | operator== (const class OksMethodImplementation &) const |
const std::string & | get_language () const noexcept |
void | set_language (const std::string &language) |
Set method implementation language. | |
const std::string & | get_prototype () const noexcept |
void | set_prototype (const std::string &prototype) |
Set method implementation prototype. | |
const std::string & | get_body () const noexcept |
void | set_body (const std::string &body) |
Set method implementation body. | |
Private Member Functions | |
OksMethodImplementation (OksXmlInputStream &, OksMethod *) | |
void | save (OksXmlOutputStream &) const |
Private Attributes | |
std::string | p_language |
std::string | p_prototype |
std::string | p_body |
OksMethod * | p_method |
Static Private Attributes | |
static const char | method_impl_xml_tag [] = "method-implementation" |
static const char | language_xml_attr [] = "language" |
static const char | prototype_xml_attr [] = "prototype" |
static const char | body_xml_attr [] = "body" |
Friends | |
class | OksKernel |
class | OksMethod |
std::ostream & | operator<< (std::ostream &s, const OksMethodImplementation &i) |
OKS method implementation class.
An OKS method may have implementations on different languages (e.g. "c++", "java", etc.). Implementations linked with a method shall have different languages. The method implementations are used by oksdalgen package generating DAL.
Definition at line 34 of file method.hpp.
dunedaq::oks::OksMethodImplementation::OksMethodImplementation | ( | const std::string & | language, |
const std::string & | prototype, | ||
const std::string & | body, | ||
OksMethod * | p = nullptr ) |
OKS method implementation constructor.
Create new OKS method implementation providing language, method prototype and body.
The parameters are:
language | programming language used for given method implementation (max 16 bytes, see #s_max_language_length variable) |
prototype | prototype of method implementation for selected programming language (max 1024 bytes, see #s_max_prototype_length variable) |
body | optional body of method implementation (max 2048 bytes, see #s_max_body_length variable) |
oks::exception | is thrown in case of problems. |
Definition at line 24 of file method.cpp.
|
private |
Definition at line 70 of file method.cpp.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
bool dunedaq::oks::OksMethodImplementation::operator== | ( | const class OksMethodImplementation & | i | ) | const |
Definition at line 35 of file method.cpp.
|
private |
Definition at line 56 of file method.cpp.
void dunedaq::oks::OksMethodImplementation::set_body | ( | const std::string & | body | ) |
Set method implementation body.
body | new method implementation body (max 2048 bytes, see #s_max_body_length variable) In case of problems the oks::exception is thrown. |
oks::exception | is thrown in case of problems. |
Definition at line 475 of file method.cpp.
void dunedaq::oks::OksMethodImplementation::set_language | ( | const std::string & | language | ) |
Set method implementation language.
Implementations linked with a method shall have different languages.
language | new method implementation language (max 16 bytes, see #s_max_language_length variable) In case of problems the oks::exception is thrown. |
oks::exception | is thrown in case of problems. |
Definition at line 424 of file method.cpp.
void dunedaq::oks::OksMethodImplementation::set_prototype | ( | const std::string & | prototype | ) |
Set method implementation prototype.
prototype | new method implementation prototype (max 1024 bytes, see #s_max_prototype_length variable) In case of problems the oks::exception is thrown. |
oks::exception | is thrown in case of problems. |
Definition at line 454 of file method.cpp.
|
friend |
Definition at line 36 of file method.hpp.
|
friend |
Definition at line 37 of file method.hpp.
|
friend |
Definition at line 43 of file method.cpp.
|
staticprivate |
Definition at line 134 of file method.hpp.
|
staticprivate |
Definition at line 132 of file method.hpp.
|
staticprivate |
Definition at line 131 of file method.hpp.
|
private |
Definition at line 118 of file method.hpp.
|
private |
Definition at line 116 of file method.hpp.
|
private |
Definition at line 120 of file method.hpp.
|
private |
Definition at line 117 of file method.hpp.
|
staticprivate |
Definition at line 133 of file method.hpp.