@@ -17,7 +17,7 @@ limitations under the License.
1717*/
1818
1919#include " Less.h"
20- #include " ../Helper/TypeHelper .h"
20+ #include " ../Helper/ValueEnumsHelper .h"
2121#include " ../Type/String.h"
2222#include " ../Type/VarChar.h"
2323#include " ../../Exception/CLDENotImplementedException.h"
@@ -30,8 +30,8 @@ namespace CLDEPlus {
3030 bool Data::Comparer::Less::operator ()(const Data::SPtrValue &lhs, const Data::SPtrValue &rhs) const {
3131
3232 if (lhs->getDataType () != rhs->getDataType () || lhs->getCategory () != rhs->getCategory ()) {
33- string lhsType = Data::Helper::TypeHelper ::CopyValueTypeToString (lhs->getDataType ());
34- string rhsType = Data::Helper::TypeHelper ::CopyValueTypeToString (rhs->getDataType ());
33+ string lhsType = Data::Helper::ValueEnumsHelper ::CopyValueTypeToString (lhs->getDataType ());
34+ string rhsType = Data::Helper::ValueEnumsHelper ::CopyValueTypeToString (rhs->getDataType ());
3535 string msg{lhsType + " has different type/category with " + rhsType};
3636 throw Exception::CLDENonSupportedDataTypeException{msg};
3737 }
@@ -113,12 +113,12 @@ namespace CLDEPlus {
113113 return *ptrLhsTmp < *ptrRhsTmp;
114114 }
115115 case ValueType::Currency: {
116- string type = Data::Helper::TypeHelper ::CopyValueTypeToString (lhs->getDataType ());
116+ string type = Data::Helper::ValueEnumsHelper ::CopyValueTypeToString (lhs->getDataType ());
117117 string msg{type + " is not supported by the numeric comparer" };
118118 throw Exception::CLDENonSupportedDataTypeException{msg};
119119 }
120120 default : {
121- string type = Data::Helper::TypeHelper ::CopyValueTypeToString (lhs->getDataType ());
121+ string type = Data::Helper::ValueEnumsHelper ::CopyValueTypeToString (lhs->getDataType ());
122122 string msg{type + " is not supported by the numeric comparer" };
123123 throw Exception::CLDENonSupportedDataTypeException{msg};
124124 }
@@ -139,12 +139,12 @@ namespace CLDEPlus {
139139 return strcmp (ptrLhsTmp->ToString ().c_str (), ptrRhsTmp->ToString ().c_str ()) < 0 ;
140140 }
141141 case ValueType::Text: {
142- string type = Data::Helper::TypeHelper ::CopyValueTypeToString (lhs->getDataType ());
142+ string type = Data::Helper::ValueEnumsHelper ::CopyValueTypeToString (lhs->getDataType ());
143143 string msg{type + " is not supported by the character based comparer" };
144144 throw Exception::CLDENonSupportedDataTypeException{msg};
145145 }
146146 default : {
147- string type = Data::Helper::TypeHelper ::CopyValueTypeToString (lhs->getDataType ());
147+ string type = Data::Helper::ValueEnumsHelper ::CopyValueTypeToString (lhs->getDataType ());
148148 string msg{type + " is not supported by the character based comparer" };
149149 throw Exception::CLDENonSupportedDataTypeException{msg};
150150 }
@@ -168,7 +168,7 @@ namespace CLDEPlus {
168168 return lhsComparable.LessThan (rhsComparable);
169169 }
170170 default : {
171- string type = Data::Helper::TypeHelper ::CopyValueTypeToString (lhs->getDataType ());
171+ string type = Data::Helper::ValueEnumsHelper ::CopyValueTypeToString (lhs->getDataType ());
172172 string msg{type + " is not supported by the date&time based comparer" };
173173 throw Exception::CLDENonSupportedDataTypeException{msg};
174174 }
0 commit comments