Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
Config.hpp File Reference
#include <assert.h>
#include <map>
#include <climits>
#include <cstdio>
#include <cstdlib>
#include <functional>
#include <iostream>
#include <stdexcept>
#include <string>
#include <string_view>
#include <type_traits>
#include <vector>
#include <float.h>
#include "libslic3r.h"
#include "clonable_ptr.hpp"
#include "Exception.hpp"
#include "Point.hpp"
#include <boost/algorithm/string/predicate.hpp>
#include <boost/algorithm/string/trim.hpp>
#include <boost/format/format_fwd.hpp>
#include <boost/functional/hash.hpp>
#include <boost/property_tree/ptree_fwd.hpp>
#include <cereal/access.hpp>
#include <cereal/types/base_class.hpp>
+ Include dependency graph for Config.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Slic3r::FloatOrPercent
 
struct  std::hash< Slic3r::FloatOrPercent >
 
struct  std::hash< Slic3r::Vec2d >
 
struct  std::hash< Slic3r::Vec3d >
 
class  Slic3r::ConfigurationError
 
class  Slic3r::UnknownOptionException
 
class  Slic3r::NoDefinitionException
 
class  Slic3r::BadOptionTypeException
 
class  Slic3r::BadOptionValueException
 
struct  Slic3r::ConfigOptionDeleter
 
struct  Slic3r::ConfigSubstitution
 
struct  Slic3r::ConfigSubstitutionContext
 
class  Slic3r::ConfigOption
 
class  Slic3r::ConfigOptionSingle< T >
 
class  Slic3r::ConfigOptionVectorBase
 
class  Slic3r::ConfigOptionVector< T >
 
class  Slic3r::ConfigOptionFloat
 
class  Slic3r::ConfigOptionFloatsTempl< NULLABLE >
 
class  Slic3r::ConfigOptionInt
 
class  Slic3r::ConfigOptionIntsTempl< NULLABLE >
 
class  Slic3r::ConfigOptionString
 
class  Slic3r::ConfigOptionStrings
 
class  Slic3r::ConfigOptionPercent
 
class  Slic3r::ConfigOptionPercentsTempl< NULLABLE >
 
class  Slic3r::ConfigOptionFloatOrPercent
 
class  Slic3r::ConfigOptionFloatsOrPercentsTempl< NULLABLE >
 
class  Slic3r::ConfigOptionPoint
 
class  Slic3r::ConfigOptionPoints
 
class  Slic3r::ConfigOptionPoint3
 
class  Slic3r::ConfigOptionBool
 
class  Slic3r::ConfigOptionBoolsTempl< NULLABLE >
 
class  Slic3r::ConfigOptionEnum< T >
 
class  Slic3r::ConfigOptionEnumGeneric
 
class  Slic3r::ConfigOptionEnumDef
 
class  Slic3r::ConfigOptionDef
 
class  Slic3r::ConfigDef
 
class  Slic3r::ConfigOptionResolver
 
class  Slic3r::ConfigBase
 
struct  Slic3r::ConfigBase::SetDeserializeItem
 
class  Slic3r::DynamicConfig
 
class  Slic3r::StaticConfig
 

Namespaces

namespace  Slic3r
 
namespace  std
 STL namespace.
 
namespace  Slic3r::ConfigHelpers
 

Typedefs

typedef std::string Slic3r::t_config_option_key
 
typedef std::vector< std::string > Slic3r::t_config_option_keys
 
using Slic3r::ConfigOptionUniquePtr = std::unique_ptr< ConfigOption, ConfigOptionDeleter >
 
using Slic3r::ConfigSubstitutions = std::vector< ConfigSubstitution >
 
typedef ConfigOptionSlic3r::ConfigOptionPtr
 
typedef const ConfigOptionSlic3r::ConfigOptionConstPtr
 
using Slic3r::ConfigOptionFloats = ConfigOptionFloatsTempl< false >
 
using Slic3r::ConfigOptionFloatsNullable = ConfigOptionFloatsTempl< true >
 
using Slic3r::ConfigOptionInts = ConfigOptionIntsTempl< false >
 
using Slic3r::ConfigOptionIntsNullable = ConfigOptionIntsTempl< true >
 
using Slic3r::ConfigOptionPercents = ConfigOptionPercentsTempl< false >
 
using Slic3r::ConfigOptionPercentsNullable = ConfigOptionPercentsTempl< true >
 
using Slic3r::ConfigOptionFloatsOrPercents = ConfigOptionFloatsOrPercentsTempl< false >
 
using Slic3r::ConfigOptionFloatsOrPercentsNullable = ConfigOptionFloatsOrPercentsTempl< true >
 
using Slic3r::ConfigOptionBools = ConfigOptionBoolsTempl< false >
 
using Slic3r::ConfigOptionBoolsNullable = ConfigOptionBoolsTempl< true >
 
typedef std::vector< std::string > Slic3r::t_config_enum_names
 
typedef std::map< std::string, int > Slic3r::t_config_enum_values
 
typedef std::map< t_config_option_key, ConfigOptionDefSlic3r::t_optiondef_map
 

Enumerations

enum class  Slic3r::ConfigHelpers::DeserializationSubstitution { Slic3r::ConfigHelpers::Disabled , Slic3r::ConfigHelpers::DefaultsToFalse , Slic3r::ConfigHelpers::DefaultsToTrue }
 
enum class  Slic3r::ConfigHelpers::DeserializationResult { Slic3r::ConfigHelpers::Loaded , Slic3r::ConfigHelpers::Substituted , Slic3r::ConfigHelpers::Failed }
 
enum  Slic3r::ConfigOptionType {
  Slic3r::coVectorType = 0x4000 , Slic3r::coNone = 0 , Slic3r::coFloat = 1 , Slic3r::coFloats = coFloat + coVectorType ,
  Slic3r::coInt = 2 , Slic3r::coInts = coInt + coVectorType , Slic3r::coString = 3 , Slic3r::coStrings = coString + coVectorType ,
  Slic3r::coPercent = 4 , Slic3r::coPercents = coPercent + coVectorType , Slic3r::coFloatOrPercent = 5 , Slic3r::coFloatsOrPercents = coFloatOrPercent + coVectorType ,
  Slic3r::coPoint = 6 , Slic3r::coPoints = coPoint + coVectorType , Slic3r::coPoint3 = 7 , Slic3r::coBool = 8 ,
  Slic3r::coBools = coBool + coVectorType , Slic3r::coEnum = 9
}
 
enum  Slic3r::ConfigOptionMode { Slic3r::comSimple = 0 , Slic3r::comAdvanced , Slic3r::comExpert , Slic3r::comUndef }
 
enum  Slic3r::PrinterTechnology : unsigned char { Slic3r::ptFFF , Slic3r::ptSLA , Slic3r::ptUnknown , Slic3r::ptAny }
 
enum  Slic3r::ForwardCompatibilitySubstitutionRule {
  Slic3r::Disable , Slic3r::Enable , Slic3r::EnableSilent , Slic3r::EnableSystemSilent ,
  Slic3r::EnableSilentDisableSystem
}
 

Functions

bool Slic3r::operator== (const FloatOrPercent &l, const FloatOrPercent &r) throw ()
 
bool Slic3r::operator!= (const FloatOrPercent &l, const FloatOrPercent &r) throw ()
 
bool Slic3r::operator< (const FloatOrPercent &l, const FloatOrPercent &r) throw ()
 
std::string Slic3r::escape_string_cstyle (const std::string &str)
 
std::string Slic3r::escape_strings_cstyle (const std::vector< std::string > &strs)
 
bool Slic3r::unescape_string_cstyle (const std::string &str, std::string &str_out)
 
bool Slic3r::unescape_strings_cstyle (const std::string &str, std::vector< std::string > &out)
 
std::string Slic3r::escape_ampersand (const std::string &str)
 
bool Slic3r::ConfigHelpers::looks_like_enum_value (std::string value)
 
bool Slic3r::ConfigHelpers::enum_looks_like_true_value (std::string value)
 
bool Slic3r::operator< (const ConfigSubstitution &lhs, const ConfigSubstitution &rhs) throw ()
 
bool Slic3r::operator== (const ConfigSubstitution &lhs, const ConfigSubstitution &rhs) throw ()
 

Class Documentation

◆ Slic3r::ConfigSubstitution

struct Slic3r::ConfigSubstitution
+ Collaboration diagram for Slic3r::ConfigSubstitution:
Class Members
ConfigOptionUniquePtr new_value
string old_value
const ConfigOptionDef * opt_def { nullptr }