-loorb $(ORBLIBS) #include "oorb.h" namespace Oorb class Orb enum LogMsg::Severity struct Command
The Command struct is used within Oorb(3)-based programs to post commands to individual Oorb::Task(3)s. The structure contains a pointer to a LogMsg structure for internal use, as well as to a generic parameter-file structure Pf (per pf(3)) for passing Antelope parameter files to commands. These parameter-files should be in freshly allocated memory that can be freed by the Command destructor when necessary. The structure is as follows:enum LogMsg::Severity : int { QUIET = -1, NOTIFY = 0, VERBOSE, VERBOSE_VERY, VERBOSE_EXTREMELY, VERBOSE_DUMP, VERBOSE_TORRENTIALLY, COMPLAIN, DIE, DIE_INITIALIZING, DEBUG, SCAFFOLD, SCAFFOLD_FEATURE, }
The last value in the Command::command enum is Command::USERCOMMAND, which can be used to index one or more user-defined commands. For example after the first, subsequent user-defined commands could be labelled Command::USERCOMMAND+1, Command::USERCOMMAND+2 etc.struct Command { Command( void ); ~Command( void ); enum { NULLCOMMAND, LOG, STARTCONNECTION, STOPTASK, USERCOMMAND } command; LogMsg* logMsg; Pf* pf; };
Oorb(3)