CmdMessenger  3.0
CmdMessenger is a serial port messaging library for the .Net / Mono Platform.
Public Member Functions | Properties
CommandMessenger.ReceivedCommand Class Reference

A command received from CmdMessenger. More...

List of all members.

Public Member Functions

 ReceivedCommand ()
 Default constructor.
 ReceivedCommand (string[] arguments)
 Constructor.
bool Next ()
 Fetches the next argument.
bool Available ()
 returns if a next command is available
Int16 ReadInt16Arg ()
 Reads the current argument as short value.
UInt16 ReadUInt16Arg ()
 Reads the current argument as unsigned short value.
bool ReadBoolArg ()
 Reads the current argument as boolean value.
Int32 ReadInt32Arg ()
 Reads the current argument as int value.
UInt32 ReadUInt32Arg ()
 Reads the current argument as unsigned int value.
Single ReadFloatArg ()
 Reads the current argument as a float value.
Single ReadDoubleArg ()
 Reads the current argument as a double value.
String ReadStringArg ()
 Reads the current argument as a string value.
Single ReadBinFloatArg ()
 Reads the current binary argument as a float value.
Double ReadBinDoubleArg ()
 Reads the current binary argument as a double value.
Int16 ReadBinInt16Arg ()
 Reads the current binary argument as a short value.
UInt16 ReadBinUInt16Arg ()
 Reads the current binary argument as a unsigned short value.
Int32 ReadBinInt32Arg ()
 Reads the current binary argument as a int value.
UInt32 ReadBinUInt32Arg ()
 Reads the current binary argument as a unsigned int value.
String ReadBinStringArg ()
 Reads the current binary argument as a string value.
bool ReadBinBoolArg ()
 Reads the current binary argument as a boolean value.

Properties

long TimeStamp [get, set]
 Gets or sets the time stamp.
bool Ok [get]
 Returns whether this is a valid & filled command.
string this[int index] [get]
 Indexer to get arguments directly.
int CommandId [get]
 Gets the command ID.

Detailed Description

A command received from CmdMessenger.


Constructor & Destructor Documentation

Default constructor.

Constructor.

Parameters:
argumentsAll command arguments, first one is command ID

Member Function Documentation

returns if a next command is available

Returns:
true if it succeeds, false if it fails.

Fetches the next argument.

Returns:
true if it succeeds, false if it fails.

Reads the current binary argument as a boolean value.

Returns:
The boolean value.

Reads the current binary argument as a double value.

Returns:
The double value.

Reads the current binary argument as a float value.

Returns:
The float value.

Reads the current binary argument as a short value.

Returns:
The short value.

Reads the current binary argument as a int value.

Returns:
The int value.

Reads the current binary argument as a string value.

Returns:
The string value.

Reads the current binary argument as a unsigned short value.

Returns:
The unsigned short value.

Reads the current binary argument as a unsigned int value.

Returns:
The unsigned int value.

Reads the current argument as boolean value.

Returns:
The boolean value.

Reads the current argument as a double value.

Returns:
The unsigned double value.

Reads the current argument as a float value.

Returns:
The float value.

Reads the current argument as short value.

Returns:
The short value.

Reads the current argument as int value.

Returns:
The int value.

Reads the current argument as a string value.

Returns:
The string value.

Reads the current argument as unsigned short value.

Returns:
The unsigned short value.

Reads the current argument as unsigned int value.

Returns:
The unsigned int value.

Property Documentation

Gets the command ID.

The command ID.

Returns whether this is a valid & filled command.

true if ok, false if not.

string CommandMessenger.ReceivedCommand.this[int index] [get]

Indexer to get arguments directly.

The indexed item.

Gets or sets the time stamp.

The time stamp.


The documentation for this class was generated from the following file: