OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Config.hpp File Reference
#include <assert.h>
#include <algorithm>
#include <boost/container_hash/hash.hpp>
#include <cctype>
#include <initializer_list>
#include <limits>
#include <cmath>
#include <map>
#include <climits>
#include <cfloat>
#include <cstdio>
#include <cstdlib>
#include <functional>
#include <iostream>
#include <memory>
#include <optional>
#include <sstream>
#include <set>
#include <stdexcept>
#include <string>
#include <utility>
#include <vector>
#include "LocalesUtils.hpp"
#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 <boost/log/trivial.hpp>
#include <cereal/access.hpp>
#include <cereal/cereal.hpp>
#include <cereal/types/base_class.hpp>
#include <cereal/types/polymorphic.hpp>
Include dependency graph for Config.hpp:

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::ConfigOptionPointsGroups
class  Slic3r::ConfigOptionIntsGroups
class  Slic3r::ConfigOptionBool
class  Slic3r::ConfigOptionBoolsTempl< NULLABLE >
class  Slic3r::ConfigOptionEnum< T >
class  Slic3r::ConfigOptionEnumGeneric
class  Slic3r::ConfigOptionEnumsGenericTempl< NULLABLE >
class  Slic3r::ConfigOptionDef
class  Slic3r::ConfigDef
class  Slic3r::ConfigOptionResolver
class  Slic3r::ConfigBase
struct  Slic3r::ConfigBase::SetDeserializeItem
class  Slic3r::DynamicConfig
struct  Slic3r::DynamicConfig::KeyDifference
 Detailed information about the difference found for a single key. More...
struct  Slic3r::DynamicConfig::DynamicConfigDifference
 The full report object containing all detected differences. More...
class  Slic3r::StaticConfig
struct  Slic3r::PluginCapabilityRef

Namespaces

namespace  Slic3r
 |/ Copyright (c) Prusa Research 2020 - 2023 Enrico Turri @enricoturri1966 |/ |/ PrusaSlicer is released under the terms of the AGPLv3 or higher |/
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 ConfigOption * Slic3r::ConfigOptionPtr
typedef const ConfigOption * Slic3r::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
using Slic3r::ConfigOptionEnumsGeneric = ConfigOptionEnumsGenericTempl<false>
using Slic3r::ConfigOptionEnumsGenericNullable = ConfigOptionEnumsGenericTempl<true>
typedef std::map< t_config_option_key, ConfigOptionDef > Slic3r::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 , Slic3r::coEnums = coEnum + coVectorType , Slic3r::coPointsGroups = 10 + coVectorType ,
  Slic3r::coIntsGroups = 11 + coVectorType
}
enum  Slic3r::ConfigOptionMode { Slic3r::comSimple = 0 , Slic3r::comAdvanced , Slic3r::comExpert , Slic3r::comDevelop }
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 ()
std::ostream & Slic3r::operator<< (std::ostream &os, const DynamicConfig::DynamicConfigDifference &diff)
std::optional< PluginCapabilityRef > Slic3r::parse_capability_ref (const std::string &value)

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 }

◆ Slic3r::PluginCapabilityRef

struct Slic3r::PluginCapabilityRef
Collaboration diagram for Slic3r::PluginCapabilityRef:
Class Members
string capability_name
string name
string uuid