![]() |
Prusa Slicer 2.6.0
|
Classes | |
| struct | is_eigen_type |
| struct | is_eigen_type< Eigen::Matrix< T, R, C, P, MR, MC > > |
| struct | is_eigen_type< Eigen::SparseMatrix< T, P, I > > |
| struct | is_serializable |
| struct | is_stl_container |
| struct | is_stl_container< std::map< T1, T2 > > |
| struct | is_stl_container< std::pair< T1, T2 > > |
| struct | is_stl_container< std::set< T > > |
| struct | is_stl_container< std::vector< T1, T2 > > |
Functions | |
| template<typename T > | |
| IGL_INLINE std::enable_if< std::is_fundamental< T >::value >::type | serialize (const T &obj, tinyxml2::XMLDocument *doc, tinyxml2::XMLElement *element, const std::string &name) |
| template<typename T > | |
| IGL_INLINE std::enable_if< std::is_fundamental< T >::value >::type | deserialize (T &obj, const tinyxml2::XMLDocument *doc, const tinyxml2::XMLElement *element, const std::string &name) |
| IGL_INLINE void | serialize (const std::string &obj, tinyxml2::XMLDocument *doc, tinyxml2::XMLElement *element, const std::string &name) |
| IGL_INLINE void | deserialize (std::string &obj, const tinyxml2::XMLDocument *doc, const tinyxml2::XMLElement *element, const std::string &name) |
| template<typename T > | |
| IGL_INLINE std::enable_if< std::is_base_of< XMLSerializableBase, T >::value >::type | serialize (const T &obj, tinyxml2::XMLDocument *doc, tinyxml2::XMLElement *element, const std::string &name) |
| template<typename T > | |
| IGL_INLINE std::enable_if< std::is_base_of< XMLSerializableBase, T >::value >::type | deserialize (T &obj, const tinyxml2::XMLDocument *doc, const tinyxml2::XMLElement *element, const std::string &name) |
| template<typename T1 , typename T2 > | |
| IGL_INLINE void | serialize (const std::pair< T1, T2 > &obj, tinyxml2::XMLDocument *doc, tinyxml2::XMLElement *element, const std::string &name) |
| template<typename T1 , typename T2 > | |
| IGL_INLINE void | deserialize (std::pair< T1, T2 > &obj, const tinyxml2::XMLDocument *doc, const tinyxml2::XMLElement *element, const std::string &name) |
| template<typename T1 , typename T2 > | |
| IGL_INLINE void | serialize (const std::vector< T1, T2 > &obj, tinyxml2::XMLDocument *doc, tinyxml2::XMLElement *element, const std::string &name) |
| template<typename T1 , typename T2 > | |
| IGL_INLINE void | deserialize (std::vector< T1, T2 > &obj, const tinyxml2::XMLDocument *doc, const tinyxml2::XMLElement *element, const std::string &name) |
| template<typename T > | |
| IGL_INLINE void | serialize (const std::set< T > &obj, tinyxml2::XMLDocument *doc, tinyxml2::XMLElement *element, const std::string &name) |
| template<typename T > | |
| IGL_INLINE void | deserialize (std::set< T > &obj, const tinyxml2::XMLDocument *doc, const tinyxml2::XMLElement *element, const std::string &name) |
| template<typename T1 , typename T2 > | |
| IGL_INLINE void | serialize (const std::map< T1, T2 > &obj, tinyxml2::XMLDocument *doc, tinyxml2::XMLElement *element, const std::string &name) |
| template<typename T1 , typename T2 > | |
| IGL_INLINE void | deserialize (std::map< T1, T2 > &obj, const tinyxml2::XMLDocument *doc, const tinyxml2::XMLElement *element, const std::string &name) |
| template<typename T , int R, int C, int P, int MR, int MC> | |
| IGL_INLINE void | serialize (const Eigen::Matrix< T, R, C, P, MR, MC > &obj, const std::string &name, const std::function< std::string(const T &) > &to_string, tinyxml2::XMLDocument *doc, tinyxml2::XMLElement *element) |
| template<typename T , int R, int C, int P, int MR, int MC> | |
| IGL_INLINE void | serialize (const Eigen::Matrix< T, R, C, P, MR, MC > &obj, tinyxml2::XMLDocument *doc, tinyxml2::XMLElement *element, const std::string &name) |
| template<typename T , int R, int C, int P, int MR, int MC> | |
| IGL_INLINE void | deserialize (const tinyxml2::XMLDocument *doc, const tinyxml2::XMLElement *element, const std::string &name, const std::function< void(const std::string &, T &)> &from_string, Eigen::Matrix< T, R, C, P, MR, MC > &obj) |
| template<typename T , int R, int C, int P, int MR, int MC> | |
| IGL_INLINE void | deserialize (Eigen::Matrix< T, R, C, P, MR, MC > &obj, const tinyxml2::XMLDocument *doc, const tinyxml2::XMLElement *element, const std::string &name) |
| template<typename T , int P, typename I > | |
| IGL_INLINE void | serialize (const Eigen::SparseMatrix< T, P, I > &obj, tinyxml2::XMLDocument *doc, tinyxml2::XMLElement *element, const std::string &name) |
| template<typename T , int P, typename I > | |
| IGL_INLINE void | deserialize (Eigen::SparseMatrix< T, P, I > &obj, const tinyxml2::XMLDocument *doc, const tinyxml2::XMLElement *element, const std::string &name) |
| template<typename T > | |
| IGL_INLINE std::enable_if< std::is_pointer< T >::value >::type | serialize (const T &obj, tinyxml2::XMLDocument *doc, tinyxml2::XMLElement *element, const std::string &name) |
| template<typename T > | |
| IGL_INLINE std::enable_if< std::is_pointer< T >::value >::type | deserialize (T &obj, const tinyxml2::XMLDocument *doc, const tinyxml2::XMLElement *element, const std::string &name) |
| IGL_INLINE tinyxml2::XMLElement * | getElement (tinyxml2::XMLDocument *doc, tinyxml2::XMLElement *element, const std::string &name) |
| IGL_INLINE void | getAttribute (const char *src, bool &dest) |
| IGL_INLINE void | getAttribute (const char *src, char &dest) |
| IGL_INLINE void | getAttribute (const char *src, std::string &dest) |
| IGL_INLINE void | getAttribute (const char *src, float &dest) |
| IGL_INLINE void | getAttribute (const char *src, double &dest) |
| template<typename T > | |
| IGL_INLINE std::enable_if< std::is_integral< T >::value &&std::is_unsigned< T >::value >::type | getAttribute (const char *src, T &dest) |
| template<typename T > | |
| IGL_INLINE std::enable_if< std::is_integral< T >::value &&!std::is_unsigned< T >::value >::type | getAttribute (const char *src, T &dest) |
| IGL_INLINE void | replaceSubString (std::string &str, const std::string &search, const std::string &replace) |
| IGL_INLINE void | encodeXMLElementName (std::string &name) |
| IGL_INLINE void | decodeXMLElementName (std::string &name) |
| static bool | is_base64 (unsigned char c) |
| std::string | base64_encode (unsigned char const *bytes_to_encode, unsigned int in_len) |
| std::string | base64_decode (std::string const &encoded_string) |
Variables | |
| static const int | numForbiddenChars = 8 |
| static const char | forbiddenChars [] ={' ','/','~','#','&','>','<','='} |
| static const std::string | base64_chars |
| IGL_INLINE std::string igl::xml::serialization_xml::base64_decode | ( | std::string const & | encoded_string | ) |
References base64_chars, and is_base64().
Referenced by igl::xml::deserialize_xml().
Here is the call graph for this function:
Here is the caller graph for this function:| IGL_INLINE std::string igl::xml::serialization_xml::base64_encode | ( | unsigned char const * | bytes_to_encode, |
| unsigned int | in_len | ||
| ) |
References base64_chars.
Referenced by igl::xml::serialize_xml().
Here is the caller graph for this function:| IGL_INLINE void igl::xml::serialization_xml::decodeXMLElementName | ( | std::string & | name | ) |
References forbiddenChars, and replaceSubString().
Here is the call graph for this function:| IGL_INLINE void igl::xml::serialization_xml::deserialize | ( | const tinyxml2::XMLDocument * | doc, |
| const tinyxml2::XMLElement * | element, | ||
| const std::string & | name, | ||
| const std::function< void(const std::string &, T &)> & | from_string, | ||
| Eigen::Matrix< T, R, C, P, MR, MC > & | obj | ||
| ) |
References Eigen::Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols >::coeffRef(), getAttribute(), initialized, and Eigen::PlainObjectBase< Derived >::resize().
Here is the call graph for this function:| IGL_INLINE void igl::xml::serialization_xml::deserialize | ( | Eigen::Matrix< T, R, C, P, MR, MC > & | obj, |
| const tinyxml2::XMLDocument * | doc, | ||
| const tinyxml2::XMLElement * | element, | ||
| const std::string & | name | ||
| ) |
References deserialize(), getAttribute(), and void().
Here is the call graph for this function:| IGL_INLINE void igl::xml::serialization_xml::deserialize | ( | Eigen::SparseMatrix< T, P, I > & | obj, |
| const tinyxml2::XMLDocument * | doc, | ||
| const tinyxml2::XMLElement * | element, | ||
| const std::string & | name | ||
| ) |
References col(), getAttribute(), initialized, Eigen::SparseMatrix< _Scalar, _Options, _StorageIndex >::resize(), row(), Eigen::SparseMatrix< _Scalar, _Options, _StorageIndex >::setFromTriplets(), and Eigen::SparseMatrix< _Scalar, _Options, _StorageIndex >::setZero().
Here is the call graph for this function:| IGL_INLINE void igl::xml::serialization_xml::deserialize | ( | std::map< T1, T2 > & | obj, |
| const tinyxml2::XMLDocument * | doc, | ||
| const tinyxml2::XMLElement * | element, | ||
| const std::string & | name | ||
| ) |
References deserialize().
Here is the call graph for this function:| IGL_INLINE void igl::xml::serialization_xml::deserialize | ( | std::pair< T1, T2 > & | obj, |
| const tinyxml2::XMLDocument * | doc, | ||
| const tinyxml2::XMLElement * | element, | ||
| const std::string & | name | ||
| ) |
References deserialize().
Here is the call graph for this function:| IGL_INLINE void igl::xml::serialization_xml::deserialize | ( | std::set< T > & | obj, |
| const tinyxml2::XMLDocument * | doc, | ||
| const tinyxml2::XMLElement * | element, | ||
| const std::string & | name | ||
| ) |
References deserialize().
Here is the call graph for this function:| IGL_INLINE void igl::xml::serialization_xml::deserialize | ( | std::string & | obj, |
| const tinyxml2::XMLDocument * | doc, | ||
| const tinyxml2::XMLElement * | element, | ||
| const std::string & | name | ||
| ) |
References getAttribute().
Here is the call graph for this function:| IGL_INLINE void igl::xml::serialization_xml::deserialize | ( | std::vector< T1, T2 > & | obj, |
| const tinyxml2::XMLDocument * | doc, | ||
| const tinyxml2::XMLElement * | element, | ||
| const std::string & | name | ||
| ) |
References deserialize().
Here is the call graph for this function:| IGL_INLINE std::enable_if< std::is_fundamental< T >::value >::type igl::xml::serialization_xml::deserialize | ( | T & | obj, |
| const tinyxml2::XMLDocument * | doc, | ||
| const tinyxml2::XMLElement * | element, | ||
| const std::string & | name | ||
| ) |
References getAttribute().
Referenced by deserialize(), deserialize(), deserialize(), deserialize(), deserialize(), deserialize(), and igl::xml::deserialize_xml().
Here is the call graph for this function:
Here is the caller graph for this function:| IGL_INLINE std::enable_if< std::is_base_of< XMLSerializableBase, T >::value >::type igl::xml::serialization_xml::deserialize | ( | T & | obj, |
| const tinyxml2::XMLDocument * | doc, | ||
| const tinyxml2::XMLElement * | element, | ||
| const std::string & | name | ||
| ) |
| IGL_INLINE std::enable_if< std::is_pointer< T >::value >::type igl::xml::serialization_xml::deserialize | ( | T & | obj, |
| const tinyxml2::XMLDocument * | doc, | ||
| const tinyxml2::XMLElement * | element, | ||
| const std::string & | name | ||
| ) |
References deserialize().
Here is the call graph for this function:| IGL_INLINE void igl::xml::serialization_xml::encodeXMLElementName | ( | std::string & | name | ) |
References forbiddenChars, numForbiddenChars, and replaceSubString().
Referenced by igl::xml::deserialize_xml(), and igl::xml::serialize_xml().
Here is the call graph for this function:
Here is the caller graph for this function:| IGL_INLINE void igl::xml::serialization_xml::getAttribute | ( | const char * | src, |
| bool & | dest | ||
| ) |
Referenced by deserialize(), deserialize(), deserialize(), deserialize(), and deserialize().
Here is the caller graph for this function:| IGL_INLINE void igl::xml::serialization_xml::getAttribute | ( | const char * | src, |
| char & | dest | ||
| ) |
| IGL_INLINE void igl::xml::serialization_xml::getAttribute | ( | const char * | src, |
| double & | dest | ||
| ) |
| IGL_INLINE void igl::xml::serialization_xml::getAttribute | ( | const char * | src, |
| float & | dest | ||
| ) |
| IGL_INLINE void igl::xml::serialization_xml::getAttribute | ( | const char * | src, |
| std::string & | dest | ||
| ) |
| IGL_INLINE std::enable_if< std::is_integral< T >::value &&std::is_unsigned< T >::value >::type igl::xml::serialization_xml::getAttribute | ( | const char * | src, |
| T & | dest | ||
| ) |
| IGL_INLINE std::enable_if< std::is_integral< T >::value &&!std::is_unsigned< T >::value >::type igl::xml::serialization_xml::getAttribute | ( | const char * | src, |
| T & | dest | ||
| ) |
| tinyxml2::XMLElement * igl::xml::serialization_xml::getElement | ( | tinyxml2::XMLDocument * | doc, |
| tinyxml2::XMLElement * | element, | ||
| const std::string & | name | ||
| ) |
Referenced by serialize(), serialize(), serialize(), serialize(), serialize(), serialize(), serialize(), and serialize().
Here is the caller graph for this function:
|
inlinestatic |
Referenced by base64_decode().
Here is the caller graph for this function:| IGL_INLINE void igl::xml::serialization_xml::replaceSubString | ( | std::string & | str, |
| const std::string & | search, | ||
| const std::string & | replace | ||
| ) |
Referenced by decodeXMLElementName(), and encodeXMLElementName().
Here is the caller graph for this function:| IGL_INLINE void igl::xml::serialization_xml::serialize | ( | const Eigen::Matrix< T, R, C, P, MR, MC > & | obj, |
| const std::string & | name, | ||
| const std::function< std::string(const T &) > & | to_string, | ||
| tinyxml2::XMLDocument * | doc, | ||
| tinyxml2::XMLElement * | element | ||
| ) |
References Eigen::PlainObjectBase< Derived >::cols(), getElement(), and Eigen::PlainObjectBase< Derived >::rows().
Here is the call graph for this function:| IGL_INLINE void igl::xml::serialization_xml::serialize | ( | const Eigen::Matrix< T, R, C, P, MR, MC > & | obj, |
| tinyxml2::XMLDocument * | doc, | ||
| tinyxml2::XMLElement * | element, | ||
| const std::string & | name | ||
| ) |
References serialize(), and STR.
Here is the call graph for this function:| IGL_INLINE void igl::xml::serialization_xml::serialize | ( | const Eigen::SparseMatrix< T, P, I > & | obj, |
| tinyxml2::XMLDocument * | doc, | ||
| tinyxml2::XMLElement * | element, | ||
| const std::string & | name | ||
| ) |
References Eigen::SparseMatrix< _Scalar, _Options, _StorageIndex >::cols(), getElement(), Eigen::SparseMatrix< _Scalar, _Options, _StorageIndex >::outerSize(), and Eigen::SparseMatrix< _Scalar, _Options, _StorageIndex >::rows().
Here is the call graph for this function:| IGL_INLINE void igl::xml::serialization_xml::serialize | ( | const std::map< T1, T2 > & | obj, |
| tinyxml2::XMLDocument * | doc, | ||
| tinyxml2::XMLElement * | element, | ||
| const std::string & | name | ||
| ) |
References getElement(), and serialize().
Here is the call graph for this function:| IGL_INLINE void igl::xml::serialization_xml::serialize | ( | const std::pair< T1, T2 > & | obj, |
| tinyxml2::XMLDocument * | doc, | ||
| tinyxml2::XMLElement * | element, | ||
| const std::string & | name | ||
| ) |
References getElement(), and serialize().
Here is the call graph for this function:| IGL_INLINE void igl::xml::serialization_xml::serialize | ( | const std::set< T > & | obj, |
| tinyxml2::XMLDocument * | doc, | ||
| tinyxml2::XMLElement * | element, | ||
| const std::string & | name | ||
| ) |
References getElement(), and serialize().
Here is the call graph for this function:| IGL_INLINE void igl::xml::serialization_xml::serialize | ( | const std::string & | obj, |
| tinyxml2::XMLDocument * | doc, | ||
| tinyxml2::XMLElement * | element, | ||
| const std::string & | name | ||
| ) |
References getElement().
Here is the call graph for this function:| IGL_INLINE void igl::xml::serialization_xml::serialize | ( | const std::vector< T1, T2 > & | obj, |
| tinyxml2::XMLDocument * | doc, | ||
| tinyxml2::XMLElement * | element, | ||
| const std::string & | name | ||
| ) |
References getElement(), and serialize().
Here is the call graph for this function:| IGL_INLINE std::enable_if< std::is_fundamental< T >::value >::type igl::xml::serialization_xml::serialize | ( | const T & | obj, |
| tinyxml2::XMLDocument * | doc, | ||
| tinyxml2::XMLElement * | element, | ||
| const std::string & | name | ||
| ) |
References getElement().
Referenced by serialize(), serialize(), serialize(), serialize(), serialize(), serialize(), and igl::xml::serialize_xml().
Here is the call graph for this function:
Here is the caller graph for this function:| IGL_INLINE std::enable_if< std::is_base_of< XMLSerializableBase, T >::value >::type igl::xml::serialization_xml::serialize | ( | const T & | obj, |
| tinyxml2::XMLDocument * | doc, | ||
| tinyxml2::XMLElement * | element, | ||
| const std::string & | name | ||
| ) |
References getElement().
Here is the call graph for this function:| IGL_INLINE std::enable_if< std::is_pointer< T >::value >::type igl::xml::serialization_xml::serialize | ( | const T & | obj, |
| tinyxml2::XMLDocument * | doc, | ||
| tinyxml2::XMLElement * | element, | ||
| const std::string & | name | ||
| ) |
References getElement(), and serialize().
Here is the call graph for this function:
|
static |
Referenced by base64_decode(), and base64_encode().
|
static |
Referenced by decodeXMLElementName(), and encodeXMLElementName().
|
static |
Referenced by encodeXMLElementName().