Context: Eliminated 'readcmd' and 'writcmd' entities

This commit is contained in:
Paul Beckingham 2015-08-22 11:09:29 -04:00
parent 018592abac
commit 54fecafcec
2 changed files with 3 additions and 9 deletions

View file

@ -148,23 +148,17 @@ int Context::initialize (int argc, const char** argv)
////////////////////////////////////////////////////////////////////////////
//
// [3] Instantiate Command objects and capture entities.
// [3] Instantiate Command objects and capture command entities.
//
////////////////////////////////////////////////////////////////////////////
Command::factory (commands);
for (auto& cmd : commands)
{
cli2.entity ("cmd", cmd.first);
cli2.entity ((cmd.second->read_only () ? "readcmd" : "writecmd"), cmd.first);
if (cmd.first[0] == '_')
cli2.entity ("helper", cmd.first);
}
////////////////////////////////////////////////////////////////////////////
//
// [4] Instantiate Column objects and capture entities.
// [4] Instantiate Column objects and capture column entities.
//
////////////////////////////////////////////////////////////////////////////

View file

@ -278,7 +278,7 @@ bool Filter::pendingOnly ()
}
////////////////////////////////////////////////////////////////////////////////
// Disaster avoidance mechanism. If a WRITECMD has no filter, then it can cause
// Disaster avoidance mechanism. If a !READONLY has no filter, then it can cause
// all tasks to be modified. This is usually not intended.
void Filter::safety ()
{