qualifyName
qualifyName — creates a point name string qualified by a domain name.
static CString qualifyName( | domainname, | |
pointname); |
LPCTSTR domainname;LPCTSTR pointname;static String qualifyName( | domainname, | |
pointname); |
String domainname;String pointname;pointnameThe name of the point.
domainnameThe name of the domain containing the point.
A string with the correctly formatted qualified point name.
This utility method is used to add the domain name qualifier to a point name,
using the format
.
If the point name is already qualified, then the domain name is replaced with
the new domainname:pointnamedomainname specified.
![]() | |
If
|
All of these would reference the same point:
writePoint(_T("domain1:point1")), 1);writePoint(CDataHubPoint::qualifyName(_T("domain1"),_T("point1")), 1);setDefaultDomain(_T("domain1"));
writePoint(_T("point1"), 1);