aGrUM  0.13.2
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

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

Definition at line 70 of file O3prmrContext.h.

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

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

std::string gum::prm::o3prmr::ImportCommand::alias
int gum::prm::o3prmr::ImportCommand::line
std::string gum::prm::o3prmr::ImportCommand::value

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