Changeset View
Changeset View
Standalone View
Standalone View
extern/draco/dracoenc/src/draco/core/options.cc
| Context not available. | |||||
| #include <cstdlib> | #include <cstdlib> | ||||
| #include <string> | #include <string> | ||||
| #include <utility> | |||||
| namespace draco { | namespace draco { | ||||
| Options::Options() {} | Options::Options() {} | ||||
| void Options::MergeAndReplace(const Options &other_options) { | |||||
| for (const auto &item : other_options.options_) | |||||
| options_[item.first] = item.second; | |||||
| } | |||||
| void Options::SetInt(const std::string &name, int val) { | void Options::SetInt(const std::string &name, int val) { | ||||
| options_[name] = std::to_string(val); | options_[name] = std::to_string(val); | ||||
| } | } | ||||
| Context not available. | |||||