#1 2012-05-08 23:03:19

simon
Member
Registered: 2012-05-07
Posts: 11

ServiceReference#GetProperty method

Hey again,

I am not sure if this is a bug, but the ServiceReference#GetProperty method seems to return properties (at least the ObjectClass property) surrounded with parentheses:

I registered a service under the name "foo" in a separate module, and the following code:

	auto refs = GetModuleContext()->GetServiceReferences("");
	for (auto it = refs.begin(); it != refs.end(); ++it) {
		cout << (*it).GetProperty(ServiceConstants::OBJECTCLASS()) << endl;
	}

outputs "(foo)" rather than "foo".

Bug/no bug?

Offline

#2 2012-05-08 23:07:57

sascha
Administrator
Registered: 2012-05-04
Posts: 45

Re: ServiceReference#GetProperty method

Offline

#3 2012-05-08 23:11:38

simon
Member
Registered: 2012-05-07
Posts: 11

Re: ServiceReference#GetProperty method

Makes sense! Thanks smile
I have a some more questions in the pipe line but it will wait until tomorrow, good night!

Offline

Board footer

Powered by FluxBB