hostAddress = resource->host();
std::cout << "\tHost address of the resource: " << hostAddress << std::endl;
+ // Get the resource types
+ std::cout << "\tList of resource types: " << std::endl;
+ for(auto &resourceTypes : resource->getResourceTypes())
+ {
+ std::cout << "\t\t" << resourceTypes << std::endl;
+ }
+
+ // Get the resource interfaces
+ std::cout << "\tList of resource interfaces: " << std::endl;
+ for(auto &resourceInterfaces : resource->getResourceInterfaces())
+ {
+ std::cout << "\t\t" << resourceInterfaces << std::endl;
+ }
+
if(resourceURI == "/a/light")
{
curResource = resource;
std::cout << "Found Resource: "<<std::endl;
std::cout << "\tHost: "<< resource->host()<<std::endl;
std::cout << "\tURI: "<< resource->uri()<<std::endl;
+
+ // Get the resource types
+ std::cout << "\tList of resource types: " << std::endl;
+ for(auto &resourceTypes : resource->getResourceTypes())
+ {
+ std::cout << "\t\t" << resourceTypes << std::endl;
+ }
+
+ // Get the resource interfaces
+ std::cout << "\tList of resource interfaces: " << std::endl;
+ for(auto &resourceInterfaces : resource->getResourceInterfaces())
+ {
+ std::cout << "\t\t" << resourceInterfaces << std::endl;
+ }
std::cout<<"Doing a get on q/foo."<<std::endl;
QueryParamsMap test;
*/
bool isObservable() const;
+ /**
+ * Function to get the list of resource types
+ * @return vector of resource types
+ */
+ std::vector<std::string> getResourceTypes() const
+ {
+ return m_resourceTypes;
+ }
+
+ /**
+ * Function to get the list of resource interfaces
+ * @return vector of resource interface
+ */
+ std::vector<std::string> getResourceInterfaces(void) const
+ {
+ return m_interfaces;
+ }
+
// bool whether this is a collection type, and will have children that can be queried
//bool isCollection() const {return m_isCollection;}
// a collection of the resource-type names