Hi Colin,

Looking forward the CTsFile!
Just one point, please put the content of the attachment in the main
body. Some email clients can not see the attachment :)

Jialin Qiao

Colin_Lee <[email protected]> 于2024年5月7日周二 23:35写道:
>
> Hi all,
>
> I am currently working on CTsfile and CPPTsfile. There is already some C++ 
> code that needs some organizing work, such as removing dependencies on other 
> modules, adjusting the compilation chain, and removing company tags from the 
> code. Currently, there is a header file interface definition on CTsFile that 
> is up for discussion. This definition will also be used to wrap C++ files to 
> ensure that users can use our code in the most similar way possible.
>
> A header file definition and a simple tsfile read-write process code can be 
> found in the attachment.
>
> I've noticed that the code uses void* to store data. When constructing 
> expressions, it's necessary to convert certain data into a specific format,
> like "(void*)&(float){30.0f}" at "Expression tempreature_condition = { 
> "temperature", {(void*)&(float){30.0f}, TS_TYPE_FLOAT},GT, NULL,0  };” .
> which might increase the usage cost for developers. It's also feasible to use 
> char* to express the data conditions in the constant expressions within 
> Expression. However, this method requires additional type conversion.
> All suggestions and ideas are open for discussion.
> Colin Lee.

Reply via email to