Changeset 792 for code/branches/core/src/util/Convert.h
- Timestamp:
- Feb 9, 2008, 7:32:06 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core/src/util/Convert.h
r790 r792 36 36 #include <sstream> 37 37 38 #include "UtilPrereqs.h" 38 39 39 40 // DEFAULT CLASS 40 41 template <typename FromType, typename ToType> 41 class Converter42 class _UtilExport Converter 42 43 { 43 44 public: … … 50 51 // PARTIAL SPECIALIZATION TO CONVERT TO STRINGS 51 52 template<typename FromType> 52 class Converter<FromType, std::string>53 class _UtilExport Converter<FromType, std::string> 53 54 { 54 55 public: … … 68 69 // PARTIAL SPECIALIZATION TO CONVERT FROM STRING 69 70 template<typename ToType> 70 class Converter<std::string, ToType>71 class _UtilExport Converter<std::string, ToType> 71 72 { 72 73 public: … … 83 84 // FUNCTION SO WE DO NOT HAVE TO TELL THE COMPILER ABOUT THE TYPE 84 85 template<typename FromType, typename ToType> 85 static bool ConvertValue(ToType* output, const FromType& input)86 static _UtilExport bool ConvertValue(ToType* output, const FromType& input) 86 87 { 87 88 Converter<FromType, ToType> converter; … … 91 92 // THE SAME, BUT WITH DEFAULT VALUE 92 93 template<typename FromType, typename ToType> 93 static bool ConvertValue(ToType* output, const FromType& input, const ToType& fallback)94 static _UtilExport bool ConvertValue(ToType* output, const FromType& input, const ToType& fallback) 94 95 { 95 96 Converter<FromType, ToType> converter;
Note: See TracChangeset
for help on using the changeset viewer.