My Project
|
#include <common.hpp>
Static Public Member Functions | |
static std::string | __printClassName (const std::string &&obj_name) |
static std::string | printClassNameFromStr (const std::string &&str) |
template<class K > | |
static std::string | printClassName (K &k) |
common.hpp - static helper functions of various types
Copyright 2015 Jonathan Beard
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at:
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
|
static |
__printClassName - helper function for below function, basically see the more complete docs below for the delta, the string passed to this function should be the name of the class from either the typeinfo or typeid( xx ).name() call.
user must delete this, make string then delete
one good case
|
inlinestatic |
pringClassName - takes in a class reference and prints the class name using cxx-demangle. I basically got tired of typing all the error checking code over and over so here's a simplified interface for it.
k | - Class reference for which you want the class. |