convert enum BarLineType into enum class