MCPcopy Create free account
hub / github.com/CloudCompare/CloudCompare / registerCommand

Method registerCommand

qCC/ccCommandLineParser.cpp:225–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223}
224
225bool ccCommandLineParser::registerCommand(Command::Shared command)
226{
227 if (!command)
228 {
229 assert(false);
230 return false;
231 }
232
233 if (m_commands.contains(command->m_keyword))
234 {
235 assert(false);
236 warning(QString("Internal error: keyword '%1' already registered (by command '%2')").arg(command->m_keyword, m_commands[command->m_keyword]->m_name));
237 return false;
238 }
239
240 m_commands.insert(command->m_keyword, command);
241
242 return true;
243}
244
245QString ccCommandLineParser::getExportFilename( const CLEntityDesc& entityDesc,
246 QString extension/*=QString()*/,

Callers 8

registerCommandsMethod · 0.80
registerCommandsMethod · 0.80
registerCommandsMethod · 0.80
registerCommandsMethod · 0.80
registerCommandsMethod · 0.80
registerCommandsMethod · 0.80
registerCommandsMethod · 0.80
registerCommandsMethod · 0.80

Calls 3

QStringClass · 0.70
containsMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected