OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
HintsCerealData Struct Reference
Collaboration diagram for HintsCerealData:

Public Member Functions

template<class Archive>
void serialize (Archive &ar, std::uint32_t const version)

Public Attributes

std::vector< std::string > my_data

Detailed Description

Member Function Documentation

◆ serialize()

template<class Archive>
void HintsCerealData::serialize ( Archive & ar,
std::uint32_t const version )
inline
59{
60// You can choose different behaviors depending on the version
61// This is useful if you need to support older variants of your codebase
62// interacting with newer ones
63if (version > HINTS_CEREAL_VERSION)
64 throw Slic3r::IOError("Version of hints.cereal is higher than current version.");
65else
66 ar(my_data);
67}
#define HINTS_CEREAL_VERSION
Definition HintNotification.cpp:50
std::vector< std::string > my_data
Definition HintNotification.cpp:54

References HINTS_CEREAL_VERSION, and my_data.

Member Data Documentation

◆ my_data

std::vector<std::string> HintsCerealData::my_data

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