2c27b13aa5245b007c50f6bd6f1b099501c88b6f
[o-du/l2.git] / src / o1 / NrCellInfo.hpp
1 /*******************************************************************************
2 ################################################################################
3 #   Copyright (c) [2020-2021] [HCL Technologies Ltd.]                          #
4 #                                                                              #
5 #   Licensed under the Apache License, Version 2.0 (the "License");            #
6 #   you may not use this file except in compliance with the License.           #
7 #   You may obtain a copy of the License at                                    #
8 #                                                                              #
9 #       http://www.apache.org/licenses/LICENSE-2.0                             #
10 #                                                                              #
11 #   Unless required by applicable law or agreed to in writing, software        #
12 #   distributed under the License is distributed on an "AS IS" BASIS,          #
13 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   #
14 #   See the License for the specific language governing permissions and        #
15 #   limitations under the License.                                             #
16 ################################################################################
17 *******************************************************************************/
18
19 /* This file contains parameters list of a cell for CLA use case*/
20
21 #ifndef __NR_CELL_INFO_HPP__
22 #define __NR_CELL_INFO_HPP__
23
24 #include <string.h>
25 #include <stdlib.h>
26 #include <stdint.h>
27 #include "sysrepo-cpp/Session.hpp"
28 #include "ConfigInterface.h"
29 #include "GlobalDefs.hpp"
30 #include "Singleton.hpp"
31 #include "NrCellInfo.hpp"
32
33
34 typedef enum AdminState{
35    LOCKED,
36    UNLOCKED,
37    SHUTTING_DOWN
38 }adminState;
39       
40 class NrCellInfo
41 {
42    public:
43       inline void setCellId(uint16_t id) { mCellId = id;}
44       inline void setOpState(OpState state) { mOpState = state;}
45       inline void setCellState( CellState state) { mCellState = state;} 
46       inline uint16_t getCellId() const {return mCellId;}
47       inline OpState getOpState() const { return mOpState;}
48       inline CellState getCellState() const { return mCellState;}
49  
50       string enumToOperationalStateString(OpState val);
51       string enumToCellStateString(CellState val);
52       AdminState adminStateToEnum(string val);
53
54    private:
55       uint16_t mCellId;
56       OpState mOpState;
57       CellState mCellState;
58 };
59
60 #endif
61
62 /**********************************************************************
63          End of file
64 **********************************************************************/