libslic3r
Library for generating gcode from 3d models
Public Member Functions | List of all members
Slic3r::DynamicConfig Class Reference

#include <ConfigBase.hpp>

Inheritance diagram for Slic3r::DynamicConfig:
Slic3r::ConfigBase Slic3r::DynamicPrintConfig

Public Member Functions

 DynamicConfig ()
 
 DynamicConfig (const ConfigDef *def)
 
 DynamicConfig (const DynamicConfig &other)
 
DynamicConfigoperator= (DynamicConfig other)
 
void swap (DynamicConfig &other)
 
virtual ~DynamicConfig ()
 
virtual ConfigOptionoptptr (const t_config_option_key &opt_key, bool create=false)
 
t_config_option_keys keys () const
 
void erase (const t_config_option_key &opt_key)
 
void clear ()
 
bool empty () const
 
void read_cli (const std::vector< std::string > &tokens, t_config_option_keys *extra)
 
bool read_cli (int argc, char **argv, t_config_option_keys *extra)
 
- Public Member Functions inherited from Slic3r::ConfigBase
 ConfigBase ()
 
 ConfigBase (const ConfigDef *def)
 
virtual ~ConfigBase ()
 
bool has (const t_config_option_key &opt_key) const
 
const ConfigOptionoption (const t_config_option_key &opt_key) const
 
ConfigOptionoption (const t_config_option_key &opt_key, bool create=false)
 
template<class T >
T * opt (const t_config_option_key &opt_key, bool create=false)
 
template<class T >
const T * opt (const t_config_option_key &opt_key) const
 
void apply (const ConfigBase &other, bool ignore_nonexistent=false)
 
void apply_only (const ConfigBase &other, const t_config_option_keys &opt_keys, bool ignore_nonexistent=false)
 
bool equals (const ConfigBase &other) const
 
t_config_option_keys diff (const ConfigBase &other) const
 
std::string serialize (const t_config_option_key &opt_key) const
 
virtual bool set_deserialize (t_config_option_key opt_key, std::string str, bool append=false)
 
double get_abs_value (const t_config_option_key &opt_key) const
 
double get_abs_value (const t_config_option_key &opt_key, double ratio_over) const
 
void setenv_ ()
 
void load (const std::string &file)
 
void save (const std::string &file) const
 

Additional Inherited Members

- Public Attributes inherited from Slic3r::ConfigBase
const ConfigDefdef
 

Detailed Description

Configuration store with dynamic number of configuration values. In Slic3r, the dynamic config is mostly used at the user interface layer.

Constructor & Destructor Documentation

◆ DynamicConfig() [1/3]

Slic3r::DynamicConfig::DynamicConfig ( )
inline

◆ DynamicConfig() [2/3]

Slic3r::DynamicConfig::DynamicConfig ( const ConfigDef def)
inline

◆ DynamicConfig() [3/3]

Slic3r::DynamicConfig::DynamicConfig ( const DynamicConfig other)

◆ ~DynamicConfig()

Slic3r::DynamicConfig::~DynamicConfig ( )
virtual

Member Function Documentation

◆ clear()

void Slic3r::DynamicConfig::clear ( )

◆ empty()

bool Slic3r::DynamicConfig::empty ( ) const

◆ erase()

void Slic3r::DynamicConfig::erase ( const t_config_option_key opt_key)

◆ keys()

t_config_option_keys Slic3r::DynamicConfig::keys ( ) const
virtual

Implements Slic3r::ConfigBase.

◆ operator=()

DynamicConfig & Slic3r::DynamicConfig::operator= ( DynamicConfig  other)

◆ optptr()

ConfigOption * Slic3r::DynamicConfig::optptr ( const t_config_option_key opt_key,
bool  create = false 
)
virtual

Implements Slic3r::ConfigBase.

◆ read_cli() [1/2]

void Slic3r::DynamicConfig::read_cli ( const std::vector< std::string > &  tokens,
t_config_option_keys extra 
)

◆ read_cli() [2/2]

bool Slic3r::DynamicConfig::read_cli ( int  argc,
char **  argv,
t_config_option_keys extra 
)

◆ swap()

void Slic3r::DynamicConfig::swap ( DynamicConfig other)

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