#include <ServerFunction.h>
|
virtual bool | canOperateOn (DDS &) |
|
virtual bool | canOperateOn (DMR &) |
|
bool_func | get_bool_func () |
|
btp_func | get_btp_func () |
|
D4Function | get_d4_function () |
|
proj_func | get_proj_func () |
|
std::string | getDescriptionString () |
|
std::string | getDocUrl () |
|
std::string | getName () |
|
std::string | getRole () |
|
std::string | getTypeString () |
|
std::string | getUsageString () |
|
std::string | getVersion () |
|
| ServerFunction () |
|
| ServerFunction (std::string name, std::string version, std::string description, std::string usage, std::string doc_url, std::string role, bool_func f) |
|
| ServerFunction (std::string name, std::string version, std::string description, std::string usage, std::string doc_url, std::string role, btp_func f) |
|
| ServerFunction (std::string name, std::string version, std::string description, std::string usage, std::string doc_url, std::string role, D4Function f) |
|
| ServerFunction (std::string name, std::string version, std::string description, std::string usage, std::string doc_url, std::string role, proj_func f) |
|
void | setDescriptionString (const std::string &desc) |
|
void | setDocUrl (const std::string &url) |
|
void | setFunction (bool_func bf) |
|
void | setFunction (btp_func btp) |
|
void | setFunction (D4Function pf) |
|
void | setFunction (proj_func pf) |
|
void | setName (const std::string &n) |
|
void | setRole (const std::string &r) |
|
void | setUsageString (const std::string &u) |
|
void | setVersion (const std::string &ver) |
|
virtual | ~ServerFunction () |
|
Definition at line 42 of file ServerFunction.h.
◆ ServerFunction() [1/5]
libdap::ServerFunction::ServerFunction |
( |
| ) |
|
◆ ServerFunction() [2/5]
libdap::ServerFunction::ServerFunction |
( |
std::string | name, |
|
|
std::string | version, |
|
|
std::string | description, |
|
|
std::string | usage, |
|
|
std::string | doc_url, |
|
|
std::string | role, |
|
|
bool_func | f ) |
◆ ServerFunction() [3/5]
libdap::ServerFunction::ServerFunction |
( |
std::string | name, |
|
|
std::string | version, |
|
|
std::string | description, |
|
|
std::string | usage, |
|
|
std::string | doc_url, |
|
|
std::string | role, |
|
|
btp_func | f ) |
◆ ServerFunction() [4/5]
libdap::ServerFunction::ServerFunction |
( |
std::string | name, |
|
|
std::string | version, |
|
|
std::string | description, |
|
|
std::string | usage, |
|
|
std::string | doc_url, |
|
|
std::string | role, |
|
|
proj_func | f ) |
◆ ServerFunction() [5/5]
libdap::ServerFunction::ServerFunction |
( |
std::string | name, |
|
|
std::string | version, |
|
|
std::string | description, |
|
|
std::string | usage, |
|
|
std::string | doc_url, |
|
|
std::string | role, |
|
|
D4Function | f ) |
◆ ~ServerFunction()
virtual libdap::ServerFunction::~ServerFunction |
( |
| ) |
|
|
inlinevirtual |
◆ canOperateOn() [1/2]
virtual bool libdap::ServerFunction::canOperateOn |
( |
DDS & | | ) |
|
|
inlinevirtual |
If you are writing a function that can only operate on a particular kind of data, or one that relies on the presence of particular metadata, then you might override this method in order to stop the server from advertising the function in conjunction with datasets to which it cannot be applied.
- Parameters
-
dds | A DDS object for the dataset about which we will ask the question: Can this function operate on all or some portion of the contents of this dataset? CAUTION: Any implementation of this should be careful not to read data (or read as little as possible) from the passed DDS. Reading data in this method may have negative effect on overall performance. Examining metadata and dataset structure should be the basis for determining the applicability of a function to the dataset. |
- Returns
- true If this function operate on all or some portion of the contents of this dataset, false otherwise.
Reimplemented in functions::GeoGridFunction, and functions::GridFunction.
Definition at line 103 of file ServerFunction.h.
◆ canOperateOn() [2/2]
virtual bool libdap::ServerFunction::canOperateOn |
( |
DMR & | | ) |
|
|
inlinevirtual |
◆ get_bool_func()
bool_func libdap::ServerFunction::get_bool_func |
( |
| ) |
|
|
inline |
◆ get_btp_func()
btp_func libdap::ServerFunction::get_btp_func |
( |
| ) |
|
|
inline |
◆ get_d4_function()
D4Function libdap::ServerFunction::get_d4_function |
( |
| ) |
|
|
inline |
◆ get_proj_func()
proj_func libdap::ServerFunction::get_proj_func |
( |
| ) |
|
|
inline |
◆ getDescriptionString()
std::string libdap::ServerFunction::getDescriptionString |
( |
| ) |
|
|
inline |
◆ getDocUrl()
std::string libdap::ServerFunction::getDocUrl |
( |
| ) |
|
|
inline |
◆ getName()
std::string libdap::ServerFunction::getName |
( |
| ) |
|
|
inline |
◆ getRole()
std::string libdap::ServerFunction::getRole |
( |
| ) |
|
|
inline |
◆ getTypeString()
std::string libdap::ServerFunction::getTypeString |
( |
| ) |
|
|
inline |
◆ getUsageString()
std::string libdap::ServerFunction::getUsageString |
( |
| ) |
|
|
inline |
◆ getVersion()
std::string libdap::ServerFunction::getVersion |
( |
| ) |
|
|
inline |
◆ setDescriptionString()
void libdap::ServerFunction::setDescriptionString |
( |
const std::string & | desc | ) |
|
|
inline |
◆ setDocUrl()
void libdap::ServerFunction::setDocUrl |
( |
const std::string & | url | ) |
|
|
inline |
◆ setFunction() [1/4]
void libdap::ServerFunction::setFunction |
( |
bool_func | bf | ) |
|
|
inline |
Set the C function pointer for this function object.
- Note
- This does not alter any of the other function pointers, so the same name can be used for all four different kinds of functions without conflict.
- Parameters
-
Definition at line 120 of file ServerFunction.h.
◆ setFunction() [2/4]
void libdap::ServerFunction::setFunction |
( |
btp_func | btp | ) |
|
|
inline |
◆ setFunction() [3/4]
void libdap::ServerFunction::setFunction |
( |
D4Function | pf | ) |
|
|
inline |
◆ setFunction() [4/4]
void libdap::ServerFunction::setFunction |
( |
proj_func | pf | ) |
|
|
inline |
◆ setName()
void libdap::ServerFunction::setName |
( |
const std::string & | n | ) |
|
|
inline |
◆ setRole()
void libdap::ServerFunction::setRole |
( |
const std::string & | r | ) |
|
|
inline |
◆ setUsageString()
void libdap::ServerFunction::setUsageString |
( |
const std::string & | u | ) |
|
|
inline |
◆ setVersion()
void libdap::ServerFunction::setVersion |
( |
const std::string & | ver | ) |
|
|
inline |
The documentation for this class was generated from the following files: