#include "logger.h"
#include "PrimitiveResource.h"
-#include "ResourceAttributes.h"
+#include "RCSResourceAttributes.h"
namespace OIC
{
class DataCache;
-#define CACHE_TAG PCF("CACHE")
+#define CACHE_TAG "CACHE"
#define CACHE_DEFAULT_REPORT_MILLITIME 10000
#define CACHE_DEFAULT_EXPIRED_MILLITIME 15000
NONE
};
+ enum class CACHE_MODE
+ {
+ OBSERVE = 0,
+ FREQUENCY
+ };
+
typedef int CacheID;
typedef std::function<OCStackResult(std::shared_ptr<PrimitiveResource>,
- const ResourceAttributes &)> CacheCB;
+ const RCSResourceAttributes &)> CacheCB;
typedef std::map<int, std::pair<Report_Info, CacheCB>> SubscriberInfo;
typedef std::pair<int, std::pair<Report_Info, CacheCB>> SubscriberInfoPair;