class DataCache;
-#define CACHE_TAG PCF("CACHE")
+#define CACHE_TAG "CACHE"
#define CACHE_DEFAULT_REPORT_MILLITIME 10000
#define CACHE_DEFAULT_EXPIRED_MILLITIME 15000
FREQUENCY
};
+ enum class CACHE_METHOD
+ {
+ OBSERVE_ONLY,
+ ITERATED_GET
+ };
+
typedef int CacheID;
typedef std::function<OCStackResult(std::shared_ptr<PrimitiveResource>,
- const RCSResourceAttributes &)> CacheCB;
+ const RCSResourceAttributes &, int eCode)> CacheCB;
typedef std::map<int, std::pair<Report_Info, CacheCB>> SubscriberInfo;
typedef std::pair<int, std::pair<Report_Info, CacheCB>> SubscriberInfoPair;