diff --git a/include/core/state_block/has_state_blocks.h b/include/core/state_block/has_state_blocks.h index c84d345a96d6856e3911f145209c0db0bd8a33eb..4d8ab0c5e1e26a61951df9d88709ff61fd384886 100644 --- a/include/core/state_block/has_state_blocks.h +++ b/include/core/state_block/has_state_blocks.h @@ -44,13 +44,22 @@ class HasStateBlocks void unfix(); bool isFixed() const; - protected: + public: StateBlockPtr setStateBlock(const std::string& _sb_type, const StateBlockPtr& _sb); + StateBlockPtr setStateBlock(const char& _sb_type, const StateBlockPtr& _sb) + { + return setStateBlock(std::string(1,_sb_type), _sb); + } StateBlockPtr getStateBlock(const std::string& _sb_type) const; + StateBlockPtr getStateBlock(const char& _sb_type) const {return getStateBlock(std::string(1,_sb_type));} unsigned int removeStateBlock(const std::string& _sb_type) { return state_block_map_.erase(_sb_type); } + unsigned int removeStateBlock(const char& _sb_type) + { + return removeStateBlock(std::string(1,_sb_type)); + } // Emplace derived state blocks (angle, quaternion, etc). template<typename SB, typename ... Args>