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

Generic enum configuration value. More...

#include <ConfigBase.hpp>

Inheritance diagram for Slic3r::ConfigOptionEnumGeneric:
Slic3r::ConfigOptionInt Slic3r::ConfigOptionSingle< int > Slic3r::ConfigOption

Public Member Functions

std::string serialize () const
 
bool deserialize (std::string str, bool append=false)
 
- Public Member Functions inherited from Slic3r::ConfigOptionInt
 ConfigOptionInt ()
 
 ConfigOptionInt (double _value)
 
ConfigOptionIntclone () const override
 
int getInt () const override
 
void setInt (int val) override
 
std::string getString () const override
 
- Public Member Functions inherited from Slic3r::ConfigOptionSingle< int >
 ConfigOptionSingle (int _value)
 
 operator int () const
 
int operator() () const
 
void set (const ConfigOption &option)
 
- Public Member Functions inherited from Slic3r::ConfigOption
virtual ~ConfigOption ()
 
virtual double getFloat () const
 
virtual bool getBool () const
 
virtual void setFloat (double val)
 
virtual void setString (std::string val)
 

Public Attributes

const t_config_enum_valueskeys_map
 
- Public Attributes inherited from Slic3r::ConfigOptionSingle< int >
int value
 

Detailed Description

Generic enum configuration value.

We use this one in DynamicConfig objects when creating a config value object for ConfigOptionType == coEnum. In the StaticConfig, it is better to use the specialized ConfigOptionEnum<T> containers.

Member Function Documentation

◆ deserialize()

bool Slic3r::ConfigOptionEnumGeneric::deserialize ( std::string  str,
bool  append = false 
)
inlinevirtual

Reimplemented from Slic3r::ConfigOptionInt.

◆ serialize()

std::string Slic3r::ConfigOptionEnumGeneric::serialize ( ) const
inlinevirtual

Reimplemented from Slic3r::ConfigOptionInt.

Member Data Documentation

◆ keys_map

const t_config_enum_values* Slic3r::ConfigOptionEnumGeneric::keys_map

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