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

Method processArgs

tools/lasdump/Dumper.cpp:140–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140int Dumper::processArgs(std::deque<std::string> args)
141{
142
143 if (args.size() == 3)
144 {
145 if (args[0] != "-o")
146 {
147 usage();
148 return -1;
149 }
150 args.pop_front();
151
152 m_fout.open(args[0]);
153 m_out = &m_fout;
154 if (!*m_out)
155 {
156 usage("Couldn't open output file.");
157 return -1;
158 }
159 args.pop_front();
160 }
161 if (args.size() != 1)
162 {
163 usage();
164 return -1;
165 }
166
167 m_filename = args[0];
168 return 0;
169}
170
171
172} // namespace lasdump

Callers

nothing calls this directly

Calls 3

usageFunction · 0.85
sizeMethod · 0.45
openMethod · 0.45

Tested by

no test coverage detected