LINE Solver (C++)
Templated C++ port of the LINE queueing solver
Loading...
Searching...
No Matches
line::io::jmva_detail Namespace Reference

Classes

struct  Element

Functions

double to_double_strict (const std::string &s, const std::string &what)
 Strict decimal parse: the whole (trimmed) text must be a number.
const Element * child (const Element *e, const std::string &tag)
 The first direct child with the given tag, or null.
const Element * by_class (const Element *parent, const std::string &tag, const std::string &cls)
 The entry of tag under parent whose customerclass is cls, or null.
std::vector< double > split_demands (const std::string &s)
 str2double(strsplit(s, ';')) (or ','), NaN entries dropped as the reference does.
std::string file_stem (const std::string &path)
 Basename without directory or extension, MATLAB's [~,fname] = fileparts.

Function Documentation

◆ by_class()

const Element * line::io::jmva_detail::by_class ( const Element * parent,
const std::string & tag,
const std::string & cls )
inline

The entry of tag under parent whose customerclass is cls, or null.

Definition at line 96 of file jmva_reader.h.

References by_class(), and line::xml::Element::child_tags().

Referenced by by_class().

◆ child()

const Element * line::io::jmva_detail::child ( const Element * e,
const std::string & tag )
inline

The first direct child with the given tag, or null.

Definition at line 89 of file jmva_reader.h.

References child(), and line::xml::Element::child_tags().

Referenced by child().

◆ file_stem()

std::string line::io::jmva_detail::file_stem ( const std::string & path)
inline

Basename without directory or extension, MATLAB's [~,fname] = fileparts.

Definition at line 131 of file jmva_reader.h.

References file_stem().

Referenced by file_stem(), and line::io::jsim2line().

◆ split_demands()

std::vector< double > line::io::jmva_detail::split_demands ( const std::string & s)
inline

str2double(strsplit(s, ';')) (or ','), NaN entries dropped as the reference does.

Definition at line 105 of file jmva_reader.h.

References line::InputError::InputError(), and split_demands().

Referenced by split_demands().

◆ to_double_strict()

double line::io::jmva_detail::to_double_strict ( const std::string & s,
const std::string & what )
inline

Strict decimal parse: the whole (trimmed) text must be a number.

Definition at line 72 of file jmva_reader.h.

References line::InputError::InputError(), and to_double_strict().

Referenced by to_double_strict().