aqhome: make datafile a virtual class. Add datafile_direct.
this is to allow for cached data file handling later.
This commit is contained in:
154
aqhome/data/datafile.t2d
Normal file
154
aqhome/data/datafile.t2d
Normal file
@@ -0,0 +1,154 @@
|
||||
<?xml?>
|
||||
|
||||
<tm2>
|
||||
<type id="AQH_DATAFILE" type="pointer">
|
||||
<descr>
|
||||
This class contains changelog information,
|
||||
</descr>
|
||||
<lang id="c">
|
||||
<identifier>AQH_DATAFILE</identifier>
|
||||
<prefix>AQH_DataFile</prefix>
|
||||
<baseFileName>datafile</baseFileName>
|
||||
|
||||
<flags>
|
||||
nocopy
|
||||
nodup
|
||||
with_inherit
|
||||
with_list1
|
||||
with_refcount
|
||||
</flags>
|
||||
|
||||
<headers>
|
||||
<header type="sys" loc="pre">aqhome/api.h</header>
|
||||
</headers>
|
||||
|
||||
<inlines>
|
||||
|
||||
</inlines>
|
||||
|
||||
|
||||
</lang>
|
||||
|
||||
|
||||
<enums>
|
||||
|
||||
</enums>
|
||||
|
||||
|
||||
|
||||
<members>
|
||||
|
||||
<member name="valueId" type="uint64_t" maxlen="8">
|
||||
<default>0</default>
|
||||
<preset>0</preset>
|
||||
<flags>with_getbymember</flags>
|
||||
<access>public</access>
|
||||
</member>
|
||||
|
||||
</members>
|
||||
|
||||
|
||||
|
||||
<virtualFns>
|
||||
|
||||
|
||||
<!-- Database functions -->
|
||||
|
||||
<fn name="create" location="post" >
|
||||
<descr>
|
||||
</descr>
|
||||
<access>public</access>
|
||||
<returnType>int</returnType>
|
||||
<defaultReturnValue>GWEN_ERROR_NOT_IMPLEMENTED</defaultReturnValue>
|
||||
<params>
|
||||
</params>
|
||||
</fn>
|
||||
|
||||
|
||||
<fn name="open" location="post" >
|
||||
<descr>
|
||||
</descr>
|
||||
<access>public</access>
|
||||
<returnType>int</returnType>
|
||||
<defaultReturnValue>GWEN_ERROR_NOT_IMPLEMENTED</defaultReturnValue>
|
||||
<params>
|
||||
</params>
|
||||
</fn>
|
||||
|
||||
|
||||
<fn name="close" location="post" >
|
||||
<descr>
|
||||
</descr>
|
||||
<access>public</access>
|
||||
<returnType>int</returnType>
|
||||
<defaultReturnValue>GWEN_ERROR_NOT_IMPLEMENTED</defaultReturnValue>
|
||||
<params>
|
||||
</params>
|
||||
</fn>
|
||||
|
||||
<fn name="getNumberOfEntries" location="post" >
|
||||
<descr>
|
||||
</descr>
|
||||
<access>public</access>
|
||||
<returnType>uint64_t</returnType>
|
||||
<defaultReturnValue>0</defaultReturnValue>
|
||||
<params>
|
||||
</params>
|
||||
</fn>
|
||||
|
||||
<fn name="readRecord" location="post" >
|
||||
<descr>
|
||||
</descr>
|
||||
<access>public</access>
|
||||
<returnType>int</returnType>
|
||||
<defaultReturnValue>GWEN_ERROR_NOT_IMPLEMENTED</defaultReturnValue>
|
||||
<params>
|
||||
|
||||
<param type="uint64_t" name="idx" >
|
||||
<descr>
|
||||
</descr>
|
||||
</param>
|
||||
|
||||
<param type="uint64_t*" name="pTimestamp" >
|
||||
<descr>
|
||||
</descr>
|
||||
</param>
|
||||
|
||||
<param type="double*" name="pValue" >
|
||||
<descr>
|
||||
</descr>
|
||||
</param>
|
||||
|
||||
</params>
|
||||
</fn>
|
||||
|
||||
|
||||
<fn name="appendRecord" location="post" >
|
||||
<descr>
|
||||
</descr>
|
||||
<access>public</access>
|
||||
<returnType>int</returnType>
|
||||
<defaultReturnValue>GWEN_ERROR_NOT_IMPLEMENTED</defaultReturnValue>
|
||||
<params>
|
||||
|
||||
<param type="uint64_t" name="timestamp" >
|
||||
<descr>
|
||||
</descr>
|
||||
</param>
|
||||
|
||||
<param type="double" name="value" >
|
||||
<descr>
|
||||
</descr>
|
||||
</param>
|
||||
|
||||
</params>
|
||||
</fn>
|
||||
|
||||
</virtualFns>
|
||||
|
||||
|
||||
|
||||
</type>
|
||||
|
||||
</tm2>
|
||||
|
||||
Reference in New Issue
Block a user