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

Method getOptions

pdal/Options.cpp:134–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132
133
134std::vector<Option> Options::getOptions(std::string const& name) const
135{
136 std::vector<Option> output;
137
138 // If we have an empty name, return them all
139 if (name.empty())
140 {
141 for (auto it = m_options.begin(); it != m_options.end(); ++it)
142 {
143 output.push_back(it->second);
144 }
145 }
146 else
147 {
148 auto ret = m_options.equal_range(name);
149 for (auto it = ret.first; it != ret.second; ++it)
150 {
151 output.push_back(it->second);
152 }
153 }
154 return output;
155}
156
157
158/**

Callers 4

TESTFunction · 0.80
addConditionalOptionsMethod · 0.80
addOptionsFunction · 0.80
removeOptionsFunction · 0.80

Calls 3

emptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by 1

TESTFunction · 0.64