2 * OICPlatformConfig.cpp
4 * Created on: 2014. 10. 15.
8 #include "OICPlatformConfig.h"
11 OICPlatformConfig *OICPlatformConfig::s_instance = NULL;
12 mutex OICPlatformConfig::s_mutexForCreation;
13 //OCPlatform *OICPlatformConfig::s_nmOCPlatform = NULL;
14 PlatformConfig OICPlatformConfig::s_cfg;
15 //(ServiceType::InProc, ModeType::Both,"", 5683, QualityOfService::NonConfirmable);
17 OICPlatformConfig::OICPlatformConfig()
19 // TODO Auto-generated constructor stub
23 OICPlatformConfig::~OICPlatformConfig()
25 // TODO Auto-generated destructor stub
29 OICPlatformConfig *OICPlatformConfig::getInstance()
33 s_mutexForCreation.lock();
36 s_instance = new OICPlatformConfig();
39 s_mutexForCreation.unlock();
45 //void OICPlatformConfig::getOCPlatform()
47 //// if(!s_nmOCPlatform)
49 //// if(s_cfg.ipAddress.empty())
53 //// s_nmOCPlatform = new OCPlatform(s_cfg);
54 //// Configure(s_cfg);
56 //// return s_nmOCPlatform;
59 void OICPlatformConfig::initialize()
64 void OICPlatformConfig::setIP(std::string ipaddress)
66 s_cfg.ipAddress = ipaddress;