artemis-dev / artemis

A RooT Extension with Modular processors for Instant Switching
2 stars 6 forks source link

Command Group #18

Closed cheese-cake closed 8 years ago

cheese-cake commented 8 years ago

In the latest commit, there is known bug

cheese-cake commented 8 years ago

Recompile of derived classes in share or user src resolved the segmentation fault and invocation of help command. There seems to have been memory leakage.

In searching for the command, the priority is

  1. exact name
  2. full path with abbreviation
  3. command without full path

Group should be indicated when Register the command or should be directory added by creating the group by user. art::TCatCmdFactory::Instance()->Register(TCatCmdHt::Instance(),"hist"); will create a new group called "hist" if it does not exist and put "ht" command in it.

There may be a room for discussion on the automatic creation of default group. Instruction of parent group in TCatCmd may be useful? This would be another issue.