MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / load

Function load

src/OpenColorIO/OCIOYaml.cpp:66–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64// Basic types
65
66inline void load(const YAML::Node& node, bool& x)
67{
68 try
69 {
70 x = node.as<bool>();
71 }
72 catch (const std::exception & e)
73 {
74 std::ostringstream os;
75 os << "At line " << (node.Mark().line + 1)
76 << ", '" << node.Tag() << "' parsing boolean failed "
77 << "with: " << e.what();
78 throw Exception(os.str().c_str());
79 }
80}
81
82inline void load(const YAML::Node& node, double& x)
83{

Callers 11

loadDescriptionFunction · 0.85
LogUnknownKeyWarningFunction · 0.85
throwValueErrorFunction · 0.85
loadPivotFunction · 0.85
loadClampFunction · 0.85
loadLogParamFunction · 0.85
ReadMethod · 0.85
throwValueErrorMethod · 0.85
loadOverridesMethod · 0.85
loadMethod · 0.85
readMethod · 0.85

Calls 15

BitDepthFromStringFunction · 0.85
AllocationFromStringFunction · 0.85
InterpolationFromStringFunction · 0.85
CheckDuplicatesFunction · 0.85
LogUnknownKeyWarningFunction · 0.85
throwErrorFunction · 0.85
throwValueErrorFunction · 0.85
CDLStyleFromStringFunction · 0.85
NegativeStyleFromStringFunction · 0.85
FieldFoundEnum · 0.85

Tested by

no test coverage detected