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

Represents a boolean flag. More...

#include <ConfigBase.hpp>

Inheritance diagram for Slic3r::ConfigOptionBool:
Slic3r::ConfigOptionSingle< bool > Slic3r::ConfigOption

Public Member Functions

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

Additional Inherited Members

- Public Attributes inherited from Slic3r::ConfigOptionSingle< bool >
bool value
 

Detailed Description

Represents a boolean flag.

Constructor & Destructor Documentation

◆ ConfigOptionBool() [1/2]

Slic3r::ConfigOptionBool::ConfigOptionBool ( )
inline

◆ ConfigOptionBool() [2/2]

Slic3r::ConfigOptionBool::ConfigOptionBool ( bool  _value)
inline

Member Function Documentation

◆ clone()

ConfigOptionBool* Slic3r::ConfigOptionBool::clone ( ) const
inlinevirtual

Implements Slic3r::ConfigOption.

◆ deserialize()

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

Implements Slic3r::ConfigOption.

◆ getBool()

bool Slic3r::ConfigOptionBool::getBool ( ) const
inlinevirtual

Reimplemented from Slic3r::ConfigOption.

◆ serialize()

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

Implements Slic3r::ConfigOption.


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