示例#1
0
LIBHISPROXY_API __uint PMC_API cacheGetReturnedValueCount(
	RTK_HANDLE cache, 
	int idx
	)
{
	_prolog();
	return c->returnedValueCount(idx);
}
示例#2
0
LIBHISPROXY_API __bool PMC_API cacheGetFlag(
	RTK_HANDLE cache,
	__uint tagId
	)
{
	_prolog();
	return c->cacheFlag(tagId);
}
示例#3
0
LIBHISPROXY_API void PMC_API cacheScrollTimeSpan(
	RTK_HANDLE cache,
	hislog_key_t relativeTime
	)
{
	_prolog();
	c->scrollTimeSpan(relativeTime);
}
示例#4
0
LIBHISPROXY_API const hislog_item_t * PMC_API cacheGetValue(
	RTK_HANDLE cache,
	__uint tagId,
	__uint valueId
	)
{
	_prolog();
	return c->cacheValue(tagId, valueId);
}
示例#5
0
LIBHISPROXY_API void PMC_API cacheSetNames(
	RTK_HANDLE cache,
	PCTAG_NAME names, 
	__uint count
	)
{
	_prolog();
	c->setNames(names, count);
}
示例#6
0
LIBHISPROXY_API void PMC_API cacheSetTimeSpan(
	RTK_HANDLE cache,
	hislog_key_t t1, 
	__uint step, 
	__uint count
	)
{
	_prolog();
	c->setTimeSpan(t1, step, count);
}
示例#7
0
LIBHISPROXY_API __bool PMC_API cacheQuery(
	RTK_HANDLE cache,
	__uint timeout,
	archive_cache_info_t * info
	)
{
	__bool ret;
	_prolog();
	ret = c->query(timeout);
	if(info){
		cacheGetInfo(cache, info);
	}
	return ret;
}
示例#8
0
LIBHISPROXY_API void PMC_API cacheGetInfo(
	RTK_HANDLE cache,
	archive_cache_info_t * info
	)
{
	_prolog();
	
	info->tagCount = c->tagCount();
	info->valueCount = c->valueCount();
	info->startTime = c->startTime();
	info->step = c->step();
	info->names = c->names();
	info->queryTime = c->queryTime();
}
示例#9
0
LIBHISPROXY_API __bool PMC_API cacheSetInfo(
	RTK_HANDLE cache,
	const archive_cache_info_t * info
	)
{
	_prolog();
	
	if(!c->setNames(info->names, info->tagCount)){
		return __false;
	}

	if(!c->setTimeSpan(info->startTime, info->step, info->valueCount)){
		return __false;
	}
	
	return __true;
}
示例#10
0
LIBHISPROXY_API __uint PMC_API cacheGetValueCount(RTK_HANDLE cache)
{
	_prolog();
	return c->valueCount();
}
示例#11
0
LIBHISPROXY_API __uint PMC_API cacheGetStep(RTK_HANDLE cache)
{
	_prolog();
	return c->step();
}
示例#12
0
LIBHISPROXY_API hislog_key_t PMC_API cacheGetEndTime(RTK_HANDLE cache)
{
	_prolog();
	return c->endTime();
}
示例#13
0
LIBHISPROXY_API __uint PMC_API cacheGetTagCount(RTK_HANDLE cache)
{
	_prolog();
	return c->tagCount();
}
示例#14
0
//2012-7-9
LIBHISPROXY_API void PMC_API cacheSetMode(RTK_HANDLE cache, __int queryMode)
{
	_prolog();
	c->setMode(queryMode);	
}