aGrUM  0.14.1
gum::prm::o3prmr::ImportCommand Class Reference

#include <O3prmrContext.h>

Public Attributes

int line
 
std::string value
 
std::string alias
 

Public Member Functions

 ImportCommand (int line, const std::string &value, const std::string &alias)
 
 ImportCommand (const ImportCommand &c)
 
std::string toString () const
 

Detailed Description

Definition at line 68 of file O3prmrContext.h.

Constructor & Destructor Documentation

◆ ImportCommand() [1/2]

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

Definition at line 70 of file O3prmrContext.h.

◆ ImportCommand() [2/2]

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

Definition at line 75 of file O3prmrContext.h.

75  :
76  line(c.line), value(c.value), alias(c.alias) {}

Member Function Documentation

◆ toString()

std::string gum::prm::o3prmr::ImportCommand::toString ( ) const
inline

Definition at line 82 of file O3prmrContext.h.

82  {
83  return "import " + value + (alias.empty() ? "" : "as " + alias) + ";";
84  }

Member Data Documentation

◆ alias

std::string gum::prm::o3prmr::ImportCommand::alias

◆ line

int gum::prm::o3prmr::ImportCommand::line

◆ value

std::string gum::prm::o3prmr::ImportCommand::value

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