aGrUM  0.16.0
gum::prm::o3prmr::SetEngineCommand Class Reference

#include <O3prmrContext.h>

+ Inheritance diagram for gum::prm::o3prmr::SetEngineCommand:
+ Collaboration diagram for gum::prm::o3prmr::SetEngineCommand:

Public Attributes

std::string value
 
int line
 

Public Member Functions

 SetEngineCommand (int line, const std::string &value)
 
 SetEngineCommand (const SetEngineCommand &c)
 
RequestType type () const
 
std::string toString () const
 

Public Types

enum  RequestType : char {
  RequestType::Observe, RequestType::Unobserve, RequestType::Query, RequestType::SetEngine,
  RequestType::SetGndEngine
}
 

Detailed Description

Definition at line 90 of file O3prmrContext.h.

Member Enumeration Documentation

◆ RequestType

enum gum::prm::o3prmr::O3prmrCommand::RequestType : char
stronginherited
Enumerator
Observe 
Unobserve 
Query 
SetEngine 
SetGndEngine 

Definition at line 53 of file O3prmrContext.h.

53  : char {
54  Observe,
55  Unobserve,
56  Query,
57  SetEngine,
58  SetGndEngine
59  };

Constructor & Destructor Documentation

◆ SetEngineCommand() [1/2]

gum::prm::o3prmr::SetEngineCommand::SetEngineCommand ( int  line,
const std::string &  value 
)
inline

◆ SetEngineCommand() [2/2]

gum::prm::o3prmr::SetEngineCommand::SetEngineCommand ( const SetEngineCommand c)
inline

Definition at line 94 of file O3prmrContext.h.

94  :
95  O3prmrCommand(c), value(c.value) {}

Member Function Documentation

◆ toString()

std::string gum::prm::o3prmr::SetEngineCommand::toString ( ) const
inlinevirtual

Implements gum::prm::o3prmr::O3prmrCommand.

Definition at line 100 of file O3prmrContext.h.

100 { return "engine " + value + ";"; }

◆ type()

RequestType gum::prm::o3prmr::SetEngineCommand::type ( ) const
inlinevirtual

Member Data Documentation

◆ line

int gum::prm::o3prmr::O3prmrCommand::line
inherited

◆ value

std::string gum::prm::o3prmr::SetEngineCommand::value

The documentation for this class was generated from the following file: