aGrUM  0.20.3
a C++ library for (probabilistic) graphical models
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 70 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 72 of file O3prmrContext.h.

References alias, line, and value.

◆ ImportCommand() [2/2]

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

Definition at line 74 of file O3prmrContext.h.

References alias, line, and value.

74 : 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 80 of file O3prmrContext.h.

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

Member Data Documentation

◆ alias

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

Definition at line 78 of file O3prmrContext.h.

Referenced by ImportCommand().

◆ line

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

Definition at line 76 of file O3prmrContext.h.

Referenced by ImportCommand().

◆ value

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

Definition at line 77 of file O3prmrContext.h.

Referenced by ImportCommand().


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