@@ -16,82 +16,81 @@ limitations under the License.
1616
1717*/
1818
19+ #include " DataTypeException.h"
1920#include " CharacterValue.h"
2021
2122namespace CLDEPlus {
22- namespace Foundation {
23- namespace Data {
23+ namespace Data {
2424
25- CharacterValue::CharacterValue (ValueType dataType, size_t size)
26- : Value(dataType, size) {
27- //
28- }
25+ CharacterValue::CharacterValue (ValueType dataType, size_t size)
26+ : Value(dataType, size) {
27+ //
28+ }
2929
30- ValueCategory CharacterValue::_category = ValueCategory::CharacterBased;
30+ ValueCategory CharacterValue::_category = ValueCategory::CharacterBased;
3131
32- const ValueCategory &CharacterValue::getCategory () const {
33- return _category;
34- }
32+ const ValueCategory &CharacterValue::getCategory () const {
33+ return _category;
34+ }
3535
36- bool CharacterValue::isNumeric () const {
37- return false ;
38- }
36+ bool CharacterValue::isNumeric () const {
37+ return false ;
38+ }
3939
40- Value &CharacterValue::operator +(const Value &rhs) {
41- throw Exception::CLDENonSupportedFunctionException (" operator+ can not be applied to CharacterValue type" );
42- }
40+ Value &CharacterValue::operator +(const Value &rhs) {
41+ throw DataTypeException (" operator+ can not be applied to CharacterValue type" );
42+ }
4343
44- Value &CharacterValue::operator -(const Value &rhs) {
45- throw Exception::CLDENonSupportedFunctionException (" operator- can not be applied to CharacterValue type" );
46- }
44+ Value &CharacterValue::operator -(const Value &rhs) {
45+ throw DataTypeException (" operator- can not be applied to CharacterValue type" );
46+ }
4747
48- Value &CharacterValue::operator *(const Value &rhs) {
49- throw Exception::CLDENonSupportedFunctionException (" operator* can not be applied to CharacterValue type" );
50- }
48+ Value &CharacterValue::operator *(const Value &rhs) {
49+ throw DataTypeException (" operator* can not be applied to CharacterValue type" );
50+ }
5151
52- Value &CharacterValue::operator /(const Value &rhs) {
53- throw Exception::CLDENonSupportedFunctionException (" operator/ can not be applied to CharacterValue type" );
54- }
52+ Value &CharacterValue::operator /(const Value &rhs) {
53+ throw DataTypeException (" operator/ can not be applied to CharacterValue type" );
54+ }
5555
56- Value &CharacterValue::operator %(const Value &rhs) {
57- throw Exception::CLDENonSupportedFunctionException (" operator% can not be applied to CharacterValue type" );
58- }
56+ Value &CharacterValue::operator %(const Value &rhs) {
57+ throw DataTypeException (" operator% can not be applied to CharacterValue type" );
58+ }
5959
60- Value &CharacterValue::operator =(bool value) {
61- throw Exception::CLDENonSupportedFunctionException (" operator can not be applied to CharacterValue type" );
62- }
60+ Value &CharacterValue::operator =(bool value) {
61+ throw DataTypeException (" operator can not be applied to CharacterValue type" );
62+ }
6363
64- Value &CharacterValue::operator =(double value) {
65- throw Exception::CLDENonSupportedFunctionException (" operator can not be applied to CharacterValue type" );
66- }
64+ Value &CharacterValue::operator =(double value) {
65+ throw DataTypeException (" operator can not be applied to CharacterValue type" );
66+ }
6767
68- Value &CharacterValue::operator =(float value) {
69- throw Exception::CLDENonSupportedFunctionException (" operator can not be applied to CharacterValue type" );
70- }
68+ Value &CharacterValue::operator =(float value) {
69+ throw DataTypeException (" operator can not be applied to CharacterValue type" );
70+ }
7171
72- Value &CharacterValue::operator =(int16 value) {
73- throw Exception::CLDENonSupportedFunctionException (" operator can not be applied to CharacterValue type" );
74- }
72+ Value &CharacterValue::operator =(int16 value) {
73+ throw DataTypeException (" operator can not be applied to CharacterValue type" );
74+ }
7575
76- Value &CharacterValue::operator =(int32 value) {
77- throw Exception::CLDENonSupportedFunctionException (" operator can not be applied to CharacterValue type" );
78- }
76+ Value &CharacterValue::operator =(int32 value) {
77+ throw DataTypeException (" operator can not be applied to CharacterValue type" );
78+ }
7979
80- Value &CharacterValue::operator =(int64 value) {
81- throw Exception::CLDENonSupportedFunctionException (" operator can not be applied to CharacterValue type" );
82- }
80+ Value &CharacterValue::operator =(int64 value) {
81+ throw DataTypeException (" operator can not be applied to CharacterValue type" );
82+ }
8383
84- Value &CharacterValue::operator =(uint16 value) {
85- throw Exception::CLDENonSupportedFunctionException (" operator can not be applied to CharacterValue type" );
86- }
84+ Value &CharacterValue::operator =(uint16 value) {
85+ throw DataTypeException (" operator can not be applied to CharacterValue type" );
86+ }
8787
88- Value &CharacterValue::operator =(uint32 value) {
89- throw Exception::CLDENonSupportedFunctionException (" operator can not be applied to CharacterValue type" );
90- }
88+ Value &CharacterValue::operator =(uint32 value) {
89+ throw DataTypeException (" operator can not be applied to CharacterValue type" );
90+ }
9191
92- Value &CharacterValue::operator =(uint64 value) {
93- throw Exception::CLDENonSupportedFunctionException (" operator can not be applied to CharacterValue type" );
94- }
92+ Value &CharacterValue::operator =(uint64 value) {
93+ throw DataTypeException (" operator can not be applied to CharacterValue type" );
9594 }
9695 }
9796}
0 commit comments