|
xplMsg * Create |
( |
string const & |
_type, |
|
|
string const & |
_source, |
|
|
string const & |
_target, |
|
|
string const & |
_schemaClass, |
|
|
string const & |
_schemaType |
|
) |
[static] |
|
|
Creates an xplMsg.
Creates a skeleton xPL message. Once created, the individual name=value pairs that make up the message body are added through successive calls to xplMsg::AddValue. - Parameters:
-
| _type | message type. Must be one of "xpl-cmnd", "xpl-trig" or "xpl-stat". |
| _source | message sender. Complete ID of the sending application (in the form vendor-device.instance). |
| _target | message destination. Complete ID of the message destination (in the form vendor-device.instance), or "*" to send to all. |
| _schemaClass | message schema class. First part of the xPL message schema (for example, the "x10" in "x10.basic"). |
| _schemaType | message schema type. Second part of the xPL message schema (for example, the "basic" in "x10.basic"). |
- Returns:
- A new xplMsg object, if the parameters are all valid. Otherwise the method returns NULL. The caller is responsible for deleting any returned object through a call to xplMsg::Release.
- See also:
- Destroy
|
|