MCPcopy Create free account
hub / github.com/PDAL/PDAL / set

Method set

pdal/pdal_types.hpp:149–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147 bool m_auto;
148
149 bool set(const std::string& sval)
150 {
151 if (sval == "auto")
152 m_auto = true;
153 else
154 {
155 bool failed = false;
156 try
157 {
158 failed = !Utils::fromString(sval, m_val);
159 }
160 catch (...)
161 {
162 failed = true;
163 }
164 if (failed)
165 {
166 m_val = 0;
167 return false;
168 }
169 }
170 return true;
171 }
172
173 friend std::istream& operator>>(std::istream& in, XFormComponent& xfc);
174 friend std::ostream& operator<<(std::ostream& in,

Callers 1

pdal_types.hppFile · 0.45

Calls 1

fromStringFunction · 0.70

Tested by

no test coverage detected