TAPs 0.7.7.3
TAPsStringManipulator.hpp
Go to the documentation of this file.
00001 /******************************************************************************
00002 TAPsStringManipulator.hpp
00003 ******************************************************************************/
00007 /******************************************************************************
00008 SUKITTI PUNAK   (03/29/2010)
00009 UPDATE          (03/30/2010)
00010 ******************************************************************************/
00011 #ifndef TAPs_STRING_MANIPULATOR_HPP
00012 #define TAPs_STRING_MANIPULATOR_HPP
00013 
00014 #include <string>
00015 #include "../Core/TAPsException.hpp"
00016 
00017 BEGIN_NAMESPACE_TAPs
00018 //=============================================================================
00019 class StringManipulator {
00020 //=============================================================================
00021 public:
00022     // Member Functions -------------------------------------------------------
00026     inline static std::string StripOutComment (
00027         std::string const & str,    
00028         char delimiter = '#'        
00029     );
00030 
00036     inline static void BreakString (
00037         std::string const & origstr,    
00038         std::string & substr1,          
00039         std::string & substr2,          
00040         std::string const & delimiters = ":;,\t\n " 
00041     );
00042 
00044     template <typename T>
00045     inline static void ConvertStrToVar ( std::string const & str, T & var );
00046 
00048     template <typename T>
00049     inline static void ConvertVarToStr ( T const & var, std::string & str );
00050 
00051     // Data Members -----------------------------------------------------------
00052 //=============================================================================
00053 protected:
00054     // Member Functions -------------------------------------------------------
00055     // Data Members -----------------------------------------------------------
00056 //=============================================================================
00057 private:
00058     // Member Functions -------------------------------------------------------
00059     // Data Members -----------------------------------------------------------
00060 //=============================================================================
00061 }; // END CLASS StringManipulator
00062 //=============================================================================
00063 END_NAMESPACE_TAPs
00064 //-----------------------------------------------------------------------------
00066 //#include "TAPsStringManipulator.cpp"
00067 
00069 // Include definition if TAPs_USE_EXPORT is not defined
00070 //#if !defined( TAPs_USE_EXPORT )
00071     #include "TAPsStringManipulator.cpp"
00072 //#endif
00073 //-----------------------------------------------------------------------------
00074 #endif
00075 //34567890123456789012345678901234567890123456789012345678901234567890123456789
00076 //--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines