RDK Documentation (Open Sourced RDK Components)
ReservationCustomAttributes.h
1 /*
2  * If not stated otherwise in this file or this component's Licenses.txt file the
3  * following copyright and licenses apply:
4  *
5  * Copyright 2016 RDK Management
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18 */
19 
20 
21 /**
22 * @defgroup trm
23 * @{
24 * @defgroup common
25 * @{
26 **/
27 
28 
29 #ifndef TRM_RESERVATION_CUSTOM_ATTRIBUTES_H_
30 #define TRM_RESERVATION_CUSTOM_ATTRIBUTES_H_
31 
32 #include "jansson.h"
33 
34 #include "trm/TRM.h"
35 
36 TRM_BEGIN_NAMESPACE
37 
39 {
40 public:
41  ReservationCustomAttributes(json_t *jsonObject) : jsonObject(jsonObject)
42  {
43  json_incref(jsonObject);
44  }
45 
47  {
48  json_decref(jsonObject);
49  }
50 
51  json_t *getObject(void) const {
52  return jsonObject;
53  }
54 
55 private :
56  json_t *jsonObject;
57 };
58 TRM_END_NAMESPACE
59 
60 #endif
61 
62 
63 /** @} */
64 /** @} */
ReservationCustomAttributes
Definition: ReservationCustomAttributes.h:38