libslic3r
Library for generating gcode from 3d models
Public Member Functions | Public Attributes | List of all members
Slic3r::ConfigOptionSingle< T > Class Template Reference

Value of a single valued option (bool, int, float, string, point, enum) More...

#include <ConfigBase.hpp>

Inheritance diagram for Slic3r::ConfigOptionSingle< T >:
Slic3r::ConfigOption Slic3r::ConfigOptionEnum< T >

Public Member Functions

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

Public Attributes

value
 

Detailed Description

template<class T>
class Slic3r::ConfigOptionSingle< T >

Value of a single valued option (bool, int, float, string, point, enum)

Constructor & Destructor Documentation

◆ ConfigOptionSingle()

template<class T>
Slic3r::ConfigOptionSingle< T >::ConfigOptionSingle ( _value)
inline

Member Function Documentation

◆ operator T()

template<class T>
Slic3r::ConfigOptionSingle< T >::operator T ( ) const
inline

◆ operator()()

template<class T>
T Slic3r::ConfigOptionSingle< T >::operator() ( ) const
inline

◆ set()

template<class T>
void Slic3r::ConfigOptionSingle< T >::set ( const ConfigOption option)
inlinevirtual

Implements Slic3r::ConfigOption.

Member Data Documentation

◆ value

template<class T>
T Slic3r::ConfigOptionSingle< T >::value

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