|
phaser-server
0.0.5
|
Provide the names of the RF cavities. More...
#include <response.h>


Public Member Functions | |
| CavityNameResponse (const std::vector< std::string > &names) | |
| Construct an instance. More... | |
Public Member Functions inherited from JsonResponse | |
| JsonResponse (Response_t type) | |
| Construct with the outcome enumeration. | |
| std::string | operator() (void) |
| Get the JSON encoded response string. | |
Protected Member Functions | |
| virtual void | Create (JSONObject &) override |
| Add the cavity names as a JSON array value tagged as "cavities". More... | |
Additional Inherited Members | |
Public Types inherited from JsonResponse | |
| enum class | Response_t { R_ok , R_warning , R_error } |
| Status of processed request. | |
Provide the names of the RF cavities.
The standard "ok" response has a JSON array object as the value of the tag "cavities".
| CavityNameResponse::CavityNameResponse | ( | const std::vector< std::string > & | names | ) |
Construct an instance.
| names | - RF cavity names. |
|
overrideprotectedvirtual |
Add the cavity names as a JSON array value tagged as "cavities".
| root | - Collection of JSON objects to update. |
Implements JsonResponse.