Syntax
For C++:
ST_STATUS writePoint( | CDataHubPoint& | point, |
| bool | create=TRUE, |
| int | force=FALSE) ; |
ST_STATUS writePoint( | LPCTSTR | pointname, |
| int | value, |
| bool | create=TRUE, |
| bool | force=FALSE) ; |
ST_STATUS writePoint( | LPCTSTR | pointname, |
| double | value, |
| bool | create=TRUE, |
| bool | force=FALSE) ; |
ST_STATUS writePoint( | LPCTSTR | pointname, |
| LPCTSTR | value, |
| bool | create=TRUE, |
| bool | force=FALSE) ; |
For Java:
Exception writePoint( | DataHubPoint | point, |
| boolean | create, |
| boolean | force) ; |
Exception writePoint( | String | pointname, |
| String | value, |
| boolean | create, |
| boolean | force) ; |
Exception writePoint( | String | pointname, |
| String | value) ; |
Exception writePoint( | String | pointname, |
| double | value, |
| boolean | create, |
| boolean | force) ; |
Exception writePoint( | String | pointname, |
| double | value) ; |
Exception writePoint( | String | pointname, |
| int | value, |
| boolean | create, |
| boolean | force) ; |
Exception writePoint( | String | pointname, |
| int | value) ; |
Exception writePoint( | String | pointname, |
| int | type, |
| String | value_as_string, |
| boolean | create, |
| boolean | force) ; |
For C#:
Exception writePoint( | DataHubPoint | point, |
| bool | create, |
| bool | force) ; |
Exception writePoint( | String | pointname, |
| String | value, |
| bool | create, |
| bool | force) ; |
Exception writePoint( | String | pointname, |
| String | value) ; |
Exception writePoint( | String | pointname, |
| double | value, |
| bool | create, |
| bool | force) ; |
Exception writePoint( | String | pointname, |
| double | value) ; |
Exception writePoint( | String | pointname, |
| int | value, |
| bool | create, |
| bool | force) ; |
Exception writePoint( | String | pointname, |
| int | value) ; |
Exception writePoint( | String | pointname, |
| int | type, |
| String | value_as_string, |
| bool | create, |
| bool | force) ; |
Description
This method writes the given
point to the DataHub. If a DataHubPoint is used, then the
point name, type, value, quality and timestamp members must be
set. If the point is specified by name, then the type is
determined by the specific overloaded method and the timestamp is
set to the current time.
If a domain name has been
associated with the client (see setDefaultDomain),
then the point will be written to that domain, otherwise it will
be written to the domain named default. In any
case, the domain can always be overridden by qualifying the point
name as domain
name:point name
(see qualifyName).
If
the point has been registered (see registerPoint),
and the DataHub point is successfully written, then the onPointEcho
method will be invoked.
If the
create parameter is
FALSE and the point does not exist, then the
DataHub will respond with an error, and onError will be called with the
following arguments:
status: ST_NO_POINT |
msg: "Point does not exist" |