#define MAX_PATH 2048
-/* Annother way to create a context: */
-auto info_logger = []() -> boost::iostreams::stream<OC::oc_log_stream> &
-{
- static OC::oc_log_stream ols(oc_make_ostream_logger);
- static boost::iostreams::stream<OC::oc_log_stream> os(ols);
-
- return os;
-};
void getCurrentPath(std::string *pPath)
{
int main()
{
- info_logger()->set_module("ContainerTest");
- info_logger()->set_level(OC_LOG_INFO);
- info_logger() << "Starting container test." << std::flush;
+ cout << "Starting container test." << endl;
std::string strConfigPath;
getCurrentPath(&strConfigPath);
std::map<string, string> bundleParams;
container->addBundle("oic.bundle.hueSample", "", "libHueBundle.so", "huesample", bundleParams);
- std::list<RCSBundleInfo *> bundles = container->listBundles();
- std::list<RCSBundleInfo *>::iterator bundleIt;
+ std::list<unique_ptr<RCSBundleInfo>> bundles = container->listBundles();
+ std::list<unique_ptr<RCSBundleInfo>>::iterator bundleIt;
cout << "\t>>> bundle list size : " << bundles.size() << endl;
for (bundleIt = bundles.begin(); bundleIt != bundles.end(); bundleIt++)