LOM2M  0.8.0
PersistenceHelper.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2013-2021 LAAS-CNRS (www.laas.fr)
3  7 Colonel Roche 31077 Toulouse - France
4 
5  The use of this source code requires an agreement with the CNRS.
6 
7  Initial Contributors:
8  David Gauchard, Guillaume Garzone, Thierry Monteil.
9 */
10 #ifndef __PERSISTENCE_HELPER
11 #define __PERSISTENCE_HELPER
12 
13 #include "configuration.h"
14 
15 #if PERSISTENCE_FEAT
16 
21 class PersistenceHelper
22 {
23 public:
24 enum PersistenceErrorCode
25 {
26  P_SUCCESS,
27  P_FILE_NOT_FOUND,
28  P_ERROR_LOADING_ROOT_ELEMENT,
29  P_ERROR_PARSING_JSON_FILE,
30  P_ERROR_LOADING_DATA,
31  P_ERROR_STORING_DATA
32 };
37 static PersistenceErrorCode persistAll();
42 static PersistenceErrorCode loadAll();
43 };
44 
45 #endif // PERSISTENCE_FEAT
46 #endif // __PERSISTENCE_HELPER