From 204eacfbc596a77b104ab5eeb61f29371f10eda9 Mon Sep 17 00:00:00 2001 From: Stefan Pöschel Date: Wed, 15 Feb 2017 22:53:23 +0100 Subject: Hide/Move constants --- src/dls.h | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/dls.h') diff --git a/src/dls.h b/src/dls.h index 5b56ffa..73cf376 100644 --- a/src/dls.h +++ b/src/dls.h @@ -128,6 +128,12 @@ struct DL_STATE { // --- DLSManager ----------------------------------------------------------------- class DLSManager { private: + static const size_t MAXDLS; + static const size_t DLS_SEG_LEN_PREFIX; + static const size_t DLS_SEG_LEN_CHAR_MAX; + static const std::string DL_PARAMS_OPEN; + static const std::string DL_PARAMS_CLOSE; + DATA_GROUP* createDynamicLabelCommand(uint8_t command); DATA_GROUP* createDynamicLabelPlus(const DL_STATE& dl_state); bool parse_dl_param_bool(const std::string &key, const std::string &value, bool &target); @@ -142,13 +148,6 @@ private: bool dls_toggle; DL_STATE dl_state_prev; public: - static const size_t MAXDLS; - static const size_t DLS_SEG_LEN_PREFIX; - static const size_t DLS_SEG_LEN_CHAR_MAX; - static const int DLS_REPETITION_WHILE_SLS; - static const std::string DL_PARAMS_OPEN; - static const std::string DL_PARAMS_CLOSE; - DLSManager(PADPacketizer* pad_packetizer) : pad_packetizer(pad_packetizer), dls_toggle(false) {} void writeDLS(const std::string& dls_file, const DL_PARAMS& dl_params); }; -- cgit v1.2.3