aGrUM  0.16.0
gum::prm::o3prmr::O3prmrCommand Class Referenceabstract

This is an abstract class. More...

#include <O3prmrContext.h>

+ Inheritance diagram for gum::prm::o3prmr::O3prmrCommand:

Public Attributes

int line
 

Public Member Functions

 O3prmrCommand (int line)
 
 O3prmrCommand (const O3prmrCommand &c)
 
virtual ~O3prmrCommand ()
 
virtual RequestType type () const =0
 
virtual std::string toString () const =0
 

Public Types

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

Detailed Description

This is an abstract class.

It represent a o3prmr command. There five types of command, such sub-classes.

Definition at line 50 of file O3prmrContext.h.

Member Enumeration Documentation

◆ RequestType

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

◆ O3prmrCommand() [1/2]

gum::prm::o3prmr::O3prmrCommand::O3prmrCommand ( int  line)
inlineexplicit

Definition at line 61 of file O3prmrContext.h.

◆ O3prmrCommand() [2/2]

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

Definition at line 62 of file O3prmrContext.h.

◆ ~O3prmrCommand()

virtual gum::prm::o3prmr::O3prmrCommand::~O3prmrCommand ( )
inlinevirtual

Definition at line 63 of file O3prmrContext.h.

References toString(), and type().

63 {}
+ Here is the call graph for this function:

Member Function Documentation

◆ toString()

virtual std::string gum::prm::o3prmr::O3prmrCommand::toString ( ) const
pure virtual

Implemented in gum::prm::o3prmr::QueryCommand< GUM_SCALAR >, gum::prm::o3prmr::UnobserveCommand< GUM_SCALAR >, gum::prm::o3prmr::ObserveCommand< GUM_SCALAR >, gum::prm::o3prmr::SetGndEngineCommand, and gum::prm::o3prmr::SetEngineCommand.

Referenced by gum::prm::o3prmr::O3prmrContext< double >::addImport(), and ~O3prmrCommand().

+ Here is the caller graph for this function:

◆ type()

virtual RequestType gum::prm::o3prmr::O3prmrCommand::type ( ) const
pure virtual

Implemented in gum::prm::o3prmr::QueryCommand< GUM_SCALAR >, gum::prm::o3prmr::UnobserveCommand< GUM_SCALAR >, gum::prm::o3prmr::ObserveCommand< GUM_SCALAR >, gum::prm::o3prmr::SetGndEngineCommand, and gum::prm::o3prmr::SetEngineCommand.

Referenced by gum::prm::o3prmr::O3prmrSession< double >::addCommand(), and ~O3prmrCommand().

+ Here is the caller graph for this function:

Member Data Documentation

◆ line

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

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