Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

CTCLSynchronizeCommand Class Reference

#include <CTCLSynchronizeCommand.h>

Inheritance diagram for CTCLSynchronizeCommand:

CDAQTCLProcessor List of all members.

Public Member Functions

 CTCLSynchronizeCommand (CTCLInterpreter *pInterp)
 ~CTCLSynchronizeCommand ()
 Base class destructor does the work.
int operator== (const CTCLSynchronizeCommand &aCTCLSynchronizeCommand) const
 Operator== Equality Operator.
virtual int operator() (CTCLInterpreter &rInterp, CTCLResult &rResult, int nArguments, char *pArguments[])

Private Member Functions

 CTCLSynchronizeCommand (const CTCLSynchronizeCommand &aCTCLSynchronizeCommand)
 Copy Constructor private, and unimplemented.
CTCLSynchronizeCommandoperator= (const CTCLSynchronizeCommand &aCTCLSynchronizeCommand)
 Operator= Assignment Operator Private and unimplemented.

Detailed Description

Implements a Tcl command extension sync {script}

The script parameter is simply evaluated. Since this class is derived from CDAQTCLProcessor, however the script is executed syncrhonized to the application's global mutex. Since the global mutex supports recursive locking, it is legal for the script to have synchronized commands embedded within its body.

Definition at line 308 of file CTCLSynchronizeCommand.h.


Constructor & Destructor Documentation

CTCLSynchronizeCommand::CTCLSynchronizeCommand CTCLInterpreter *  pInterp  )  [inline]
 

Constructs the command. We only need an interpreter as the command name is fixed as "sync"

Definition at line 314 of file CTCLSynchronizeCommand.h.

CTCLSynchronizeCommand::~CTCLSynchronizeCommand  )  [inline]
 

Base class destructor does the work.

Definition at line 318 of file CTCLSynchronizeCommand.h.

CTCLSynchronizeCommand::CTCLSynchronizeCommand const CTCLSynchronizeCommand aCTCLSynchronizeCommand  )  [private]
 

Copy Constructor private, and unimplemented.


Member Function Documentation

int CTCLSynchronizeCommand::operator() CTCLInterpreter &  rInterp,
CTCLResult &  rResult,
int  nArguments,
char *  pArguments[]
[virtual]
 

Executes the script passed as argv[1] synchronized to the appliication's global mutex. Note that the Lack of an Argv[1] is not an error, no action will be performed, but the mutex will have been locked and unlocked.

Parameters:
rInterp is the interpreter on which the command is to execute.
rResult is the result string to be filled in by the script.
nArguments is the number of command line arguments.
pArguments is a char** command parameter list.

Definition at line 313 of file CTCLSynchronizeCommand.cpp.

CTCLSynchronizeCommand& CTCLSynchronizeCommand::operator= const CTCLSynchronizeCommand aCTCLSynchronizeCommand  )  [private]
 

Operator= Assignment Operator Private and unimplemented.

int CTCLSynchronizeCommand::operator== const CTCLSynchronizeCommand aCTCLSynchronizeCommand  )  const [inline]
 

Operator== Equality Operator.

Definition at line 327 of file CTCLSynchronizeCommand.h.


The documentation for this class was generated from the following files:
Generated on Thu Jan 6 16:58:44 2005 for Spectrodaq External Event Framework by  doxygen 1.3.9.1