Hi Thiago, Thanks for your comments, and sorry for that late response. I will let SSM developers to take a look at that issues and do what they have to do, and share you their comments if necessary. (Including, SQLite, Type Casting?)
I can share you the design documents of the SSM for IoTivity 0.9 version, however, all the "Service modules" are in the re-organizing their features & function logics now. These updates will be proposed & discussed in the mailing list & PSTG in OSWG sooner or later. So I think it would be better for you to take a look their design docs. when it?s done. :) In brief, the purpose of the Soft-Sensor Manger is to provide a way to manage the Soft-Sensors which could produce the information from the observed resource data. Calculating the ?Room Comfort-ness? using ?Temperature, Humidity, etc? and notifying this information to the requester would be a nice example for that explanation. Thank you. Jay. > 2015. 4. 11., ?? 10:57, Thiago Macieira <thiago.macieira at intel.com> ??: > > On Friday 10 April 2015 18:49:08 Thiago Macieira wrote: >> Is there a design document for SSM? As seen in the other thread, it appears >> people are confused about what this is supposed to do. > > By the way, is anyone testing SSM in 64-bit? I'm getting quite a few warnings > about pointer mistakes. For example: > > service/soft-sensor-manager/SSMCore/src/QueryProcessor/QueryEngine.cpp:264: > warning: cast to pointer from integer of different size > [-Wint-to-pointer-cast] > pResult = (std::vector<result_model> *)(((int *)pArg)[2]); > > service/soft-sensor-manager/SSMCore/src/QueryProcessor/EvaluationEngine.cpp:78 > CEvaluationEngine *pEvaluationEngine = (CEvaluationEngine > *)sqlite3_value_int(argv[0]); > > > The above are wrong and need to be fixed. Please don't ignore warnings. > > Also, please don't use C-style casts in C++ Code. > > And why are we storing pointers in a database? > -- > Thiago Macieira - thiago.macieira (AT) intel.com > Software Architect - Intel Open Source Technology Center > > _______________________________________________ > iotivity-dev mailing list > iotivity-dev at lists.iotivity.org > https://lists.iotivity.org/mailman/listinfo/iotivity-dev