#include <cmd.h>
Public Member Functions | |
Cmd (CmdProto *proto) | |
Cmd (const Cmd &rhs) | |
CmdProto * | GetProto () const |
fourcc_t | GetId () const |
int | GetInArgsCount () const |
int | GetOutArgsCount () const |
Arg * | In () |
Arg * | Out () |
void | Rewind () |
void | CopyInArgsFrom (va_list marker) |
void | CopyInArgsFrom (Cmd *cmd) |
Private Types | |
enum | { MAX_AGRS_COUNT = 16 } |
Private Attributes | |
CmdProto * | cmd_proto |
int | out_arg_index |
int | in_arg_index |
Arg | args [MAX_AGRS_COUNT] |
Cmd::Cmd | ( | CmdProto * | proto | ) | [inline] |
Construcor.
Cmd::Cmd | ( | const Cmd & | rhs | ) | [inline] |
Copy constructor.
CmdProto * Cmd::GetProto | ( | ) | const [inline] |
Gets the cmd's prototype object.
fourcc_t Cmd::GetId | ( | ) | const [inline] |
Gets the cmd's fourcc code.
int Cmd::GetInArgsCount | ( | ) | const [inline] |
Get number of input args.
int Cmd::GetOutArgsCount | ( | ) | const [inline] |
Get number of output args.
Arg * Cmd::In | ( | ) | [inline] |
Gets next input argument.
Arg * Cmd::Out | ( | ) | [inline] |
Gets next output argument.
void Cmd::Rewind | ( | ) | [inline] |
Rewind internal next args.
void Cmd::CopyInArgsFrom | ( | va_list | marker | ) | [inline] |
Set input arguments in Cmd from a C variable argument list.
CmdProto* Cmd::cmd_proto [private] |
int Cmd::out_arg_index [private] |
int Cmd::in_arg_index [private] |