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

Method add

pdal/util/ProgramArgs.hpp:84–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82 }
83
84 void add(const std::string& s)
85 {
86 if (s.empty())
87 return;
88
89 // Turn a short arg list into a set of short args: -afv -> -a -f -v
90 // so that each argval represents a single arg.
91 if (s.size() > 1 && s[0] == '-' && s[1] != '-')
92 for (size_t i = 1; i < s.size(); i++)
93 m_vals.push_back({std::string("-") + s[i]});
94 else
95 m_vals.push_back({s});
96 }
97
98 void consume(size_t i)
99 {

Callers 1

setReaderOptionsFunction · 0.45

Calls 2

emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected