aGrUM 3.1.1
a C++ library for (probabilistic) graphical models
gum::prm::o3prmr::ImportCommand Class Reference

#include <O3prmrContext.h>

Public Member Functions

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

Public Attributes

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

Detailed Description

Definition at line 85 of file O3prmrContext.h.

Constructor & Destructor Documentation

◆ ImportCommand() [1/2]

INLINE gum::prm::o3prmr::ImportCommand::ImportCommand ( int line,
std::string_view value,
std::string_view alias )

Definition at line 65 of file O3prmrContext_inl.h.

References alias, line, and value.

Referenced by ImportCommand().

Here is the caller graph for this function:

◆ ImportCommand() [2/2]

INLINE gum::prm::o3prmr::ImportCommand::ImportCommand ( const ImportCommand & c)
default

References ImportCommand().

Here is the call graph for this function:

Member Function Documentation

◆ toString()

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

Definition at line 70 of file O3prmrContext_inl.h.

70 {
71 return "import " + value + (alias.empty() ? "" : "as " + alias) + ";";
72 }

References alias, and value.

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 files: