1 /*******************************************************************************
2 ################################################################################
3 # Copyright (c) [2020-2021] [HCL Technologies Ltd.] #
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 #
9 # http://www.apache.org/licenses/LICENSE-2.0 #
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 *******************************************************************************/
19 /* This file contains parameters list of a cell for CLA use case*/
21 #include "NrCellInfo.hpp"
25 /*******************************************************************
27 * @brief convert admin state to enum
31 * Function : adminStateToEnum
34 * - convert admin state to enum
37 * @params[in] admin state in string form
38 * @return admin state in enum form
39 ******************************************************************/
41 AdminState NrCellInfo::adminStateToEnum(string val)
43 AdminState ret=LOCKED;
46 else if(val == "UNLOCKED")
48 else if(val == "SHUTTING_DOWN")
51 O1_LOG("\nO1 NrCellInfo : %s admin state not handled", \
57 /*******************************************************************
59 * @brief convert enum of cell state to string
63 * Function : enumToCellStateString
66 * - convert enum of cell state to string
69 * @params[in] enum of cell state
70 * @return cell state in string form
71 ******************************************************************/
74 string NrCellInfo::enumToCellStateString(CellState val)
89 O1_LOG("\nO1 NrCellInfo : %d cell state not handled", val);
95 /*******************************************************************
97 * @brief convert enum of operational state to string
101 * Function : enumToOperationalStateString
104 * - convert enum of operational state to string
107 * @params[in] enum of operational state
108 * @return cell operational in string form
109 ******************************************************************/
111 string NrCellInfo::enumToOperationalStateString(OpState val)
113 string ret = "DISABLED";
123 O1_LOG("\nO1 NrCellInfo : %d operational state not handled", val);
129 /**********************************************************************
131 **********************************************************************/