25 static const tFlag STRING;
26 static const tFlag BOOL;
27 static const tFlag CHAR;
28 static const tFlag UCHAR;
29 static const tFlag SHORT;
30 static const tFlag USHORT;
31 static const tFlag INT;
32 static const tFlag UINT;
33 static const tFlag LONG;
34 static const tFlag LLONG;
35 static const tFlag ULLONG;
36 static const tFlag ULONG;
37 static const tFlag FLOAT;
38 static const tFlag DOUBLE;
39 static const tFlag LONG_DOUBLE;
42 static const tFlag SINGLE_CARDINALITY;
43 static const tFlag MULTIPLE_CARDINALITY;
52 vector<int> mDimensions;
84 inline static SP::MM_Attribute
New() {
99 if (mCardinality==SINGLE_CARDINALITY)
return "1";
113 return (mCardinality==SINGLE_CARDINALITY);
119 return (mCardinality==MULTIPLE_CARDINALITY);
125 mCardinality=SINGLE_CARDINALITY;
130 mCardinality=MULTIPLE_CARDINALITY;
146 return (mDimensions.size()==3);
152 return (mAttributeType==LONG_DOUBLE);
157 return (mAttributeType==DOUBLE);
162 return (mAttributeType==FLOAT);
167 isUnsigned=(mAttributeType==ULONG);
168 return ((mAttributeType==ULONG) || (mAttributeType==LONG));
173 isUnsigned=(mAttributeType==ULLONG);
174 return ((mAttributeType==ULLONG) || (mAttributeType==LLONG));
179 isUnsigned=(mAttributeType==UINT);
180 return ((mAttributeType==UINT) || (mAttributeType==INT));
185 isUnsigned=(mAttributeType==USHORT);
186 return ((mAttributeType==USHORT) || (mAttributeType==SHORT));
193 isUnsigned=(mAttributeType==UCHAR);
194 return ((mAttributeType==UCHAR) || (mAttributeType==CHAR));
200 return (mAttributeType==BOOL);
205 return (mAttributeType==STRING);
241 mDimensions.resize(1);
244 mAttributeType=STRING;
251 mDimensions.resize(1);
266 mDimensions.resize(1);
267 char *vs=
new char(v);
276 mDimensions.resize(1);
277 short *vs=
new short(v);
279 mAttributeType=SHORT;
287 mDimensions.resize(1);
297 mDimensions.resize(1);
298 long int *vs=
new long int(v);
307 mDimensions.resize(1);
308 long long int *vs=
new long long int(v);
310 mAttributeType=LLONG;
314 inline void setValue(
const unsigned long long int& v) {
317 mDimensions.resize(1);
318 unsigned long long int *vs=
new unsigned long long int(v);
320 mAttributeType=ULLONG;
327 mDimensions.resize(1);
328 unsigned char *vs=
new unsigned char(v);
330 mAttributeType=UCHAR;
337 mDimensions.resize(1);
338 unsigned short *vs=
new unsigned short(v);
340 mAttributeType=USHORT;
347 mDimensions.resize(1);
348 unsigned int *vs=
new unsigned int(v);
357 mDimensions.resize(1);
358 unsigned long int *vs=
new unsigned long int(v);
360 mAttributeType=ULONG;
367 mDimensions.resize(1);
368 double *vs=
new double(v);
370 mAttributeType=DOUBLE;
377 mDimensions.resize(1);
378 long double *vs=
new long double(v);
380 mAttributeType=LONG_DOUBLE;
387 inline void setValue(
const vector<tString>& value) {
391 mDimensions.resize(1);
393 std::string *vs =
new std::string[n];
394 for (
int i=0;i<n;i++) vs[i]=value[i];
397 mIsValueReferenced=
false;
398 mAttributeType=STRING;
407 mDimensions.resize(1);
409 bool *vs =
new bool[n];
410 for (
int i=0;i<n;i++) vs[i]=value[i];
414 mIsValueReferenced=
false;
419 inline void setValue(
const vector<unsigned char>& value) {
423 mDimensions.resize(1);
425 unsigned char *vs =
new unsigned char[n];
426 for (
int i=0;i<n;i++) vs[i]=value[i];
429 mIsValueReferenced=
false;
430 mAttributeType=UCHAR;
438 mDimensions.resize(1);
441 for (
int i=0;i<n;i++) vs[i]=value[i];
444 mIsValueReferenced=
false;
449 inline void setValue(
const vector<double>& value) {
453 mDimensions.resize(1);
455 double *vs =
new double[n];
456 for (
int i=0;i<n;i++) vs[i]=value[i];
459 mIsValueReferenced=
false;
460 mAttributeType=DOUBLE;
464 inline void setValue(
const vector<long double>& value) {
468 mDimensions.resize(1);
470 long double *vs =
new long double[n];
471 for (
int i=0;i<n;i++) vs[i]=value[i];
474 mIsValueReferenced=
false;
475 mAttributeType=LONG_DOUBLE;
484 mDimensions.resize(1);
488 for (
int i=0;i<n;i++) vs[i]=v[i];
497 mIsValueReferenced=!isCopied;
500 mIsValueReferenced=
false;
503 mDimensions.resize(1);
505 mAttributeType=STRING;
513 mDimensions.resize(1);
516 bool *vs =
new bool[n];
517 for (
int i=0;i<n;i++) vs[i]=v[i];
524 mIsValueReferenced=!isCopied;
527 mIsValueReferenced=
false;
530 mDimensions.resize(1);
540 mDimensions.resize(1);
543 unsigned int *vs =
new unsigned int[n];
544 for (
int i=0;i<n;i++) vs[i]=v[i];
551 mIsValueReferenced=!isCopied;
554 mIsValueReferenced=
false;
557 mDimensions.resize(1);
564 setValue(n,(
const unsigned int*&) v,isCopied);
572 mDimensions.resize(1);
575 unsigned char *vs =
new unsigned char[n];
576 for (
int i=0;i<n;i++) vs[i]=v[i];
585 mIsValueReferenced=!isCopied;
588 mIsValueReferenced=
false;
591 mDimensions.resize(1);
593 mAttributeType=UCHAR;
598 setValue(n,(
const unsigned char*&) v,isCopied);
608 long int *vs =
new long int[n];
609 for (
int i=0;i<n;i++) vs[i]=v[i];
616 mIsValueReferenced=!isCopied;
619 mIsValueReferenced=
false;
628 setValue(n,(
const long int*&) v,isCopied);
638 long long int *vs =
new long long int[n];
639 for (
int i=0;i<n;i++) vs[i]=v[i];
646 mIsValueReferenced=!isCopied;
649 mIsValueReferenced=
false;
653 mAttributeType=LLONG;
658 setValue(n,(
const long long int*&) v,isCopied);
670 for (
int i=0;i<n;i++) vs[i]=v[i];
677 mIsValueReferenced=!isCopied;
680 mIsValueReferenced=
false;
694 double*vs =
new double[n];
695 for (
int i=0;i<n;i++) vs[i]=v[i];
701 mIsValueReferenced=!isCopied;
706 mIsValueReferenced=
false;
708 mAttributeType=DOUBLE;
718 long double*vs =
new long double[n];
719 for (
int i=0;i<n;i++) vs[i]=v[i];
725 mIsValueReferenced=!isCopied;
730 mIsValueReferenced=
false;
732 mAttributeType=LONG_DOUBLE;
737 inline void setValue(
const int& nRows,
const int& nCols,
const int& nValues,
double* v,
const tBoolean& isCopied) {
738 setValue(nRows,nCols,nValues,(
const double*&)v,isCopied);
742 inline void setValue(
const int& nRows,
const int& nCols,
const int& nValues,
const double*& v,
const tBoolean& isCopied) {
744 mDimensions.resize(3);
746 mDimensions[
DIM]=nValues;
747 mDimensions[
ROW]=nRows;
748 mDimensions[
COL]=nCols;
751 double *vs=
new double[nValues];
752 for (
int i=0;i<nValues;i++) vs[i]=v[i];
759 mIsValueReferenced=!isCopied;
766 mDimensions.resize(1);
767 mIsValueReferenced=
false;
769 mAttributeType=DOUBLE;
773 inline void setValue(
const int& nRows,
const int& nCols,
const vector<double>& v) {
775 int nValues=v.size();
776 mDimensions.resize(3);
777 mDimensions[
DIM]=nValues;
778 mDimensions[
ROW]=nRows;
779 mDimensions[
COL]=nCols;
781 double *vs=
new double[nValues];
782 for (
int i=0;i<nValues;i++) vs[i]=v[i];
785 mIsValueReferenced=
false;
786 mAttributeType=DOUBLE;
791 inline double *
createValue(
const int& nRows,
const int& nCols,
const int& nValues) {
793 mDimensions.resize(3);
795 mDimensions[
DIM]=nValues;
796 mDimensions[
ROW]=nRows;
797 mDimensions[
COL]=nCols;
798 double *vs=
new double[nValues];
799 mIsValueReferenced=
false;
800 mAttributeType=DOUBLE;
807 mDimensions.resize(1);
808 mDimensions[
DIM]=nValues;
809 double *vs=
new double[nValues];
810 mIsValueReferenced=
false;
811 mAttributeType=DOUBLE;
818 mDimensions.resize(1);
819 mDimensions[
DIM]=nValues;
820 int *vs=
new int[nValues];
821 mIsValueReferenced=
false;
837 if (mValue==
null)
return false;
839 v=*
static_cast<const tString*
>(mValue);
847 if (mValue==
null)
return false;
849 v=*
static_cast<const tBoolean*
>(mValue);
851 v=(
tBoolean) (*static_cast<const tBoolean*>(mValue));
858 if (mValue==
null)
return false;
859 v=*
static_cast<const char*
>(mValue);
865 if (mValue==
null)
return false;
866 v=*
static_cast<const short*
>(mValue);
872 if (mValue==
null)
return false;
873 v=*
static_cast<const int*
>(mValue);
879 if (mValue==
null)
return false;
880 v=*
static_cast<const long int*
>(mValue);
886 if (mValue==
null)
return false;
887 v=*
static_cast<const long long int*
>(mValue);
893 if (mValue==
null)
return false;
894 v=*
static_cast<const unsigned long long int*
>(mValue);
900 if (mValue==
null)
return false;
901 v=*
static_cast<const unsigned char*
>(mValue);
907 if (mValue==
null)
return false;
908 v=*
static_cast<const unsigned short*
>(mValue);
914 if (mValue==
null)
return false;
915 v=*
static_cast<const unsigned int*
>(mValue);
923 if (mValue==
null)
return false;
924 v=*
static_cast<const unsigned long int*
>(mValue);
930 if (mValue==
null)
return false;
931 v=*
static_cast<const float*
>(mValue);
937 if (mValue==
null)
return false;
938 v=*
static_cast<const double*
>(mValue);
944 if (mValue==
null)
return false;
945 v=*
static_cast<const long double*
>(mValue);
956 if (mValue==
null)
return false;
958 v.resize(mDimensions[DIM]);
959 for (
int i=0;i<mDimensions[
DIM];i++) {
968 if (mValue==
null)
return false;
971 v=
static_cast<const tString*
>(mValue);
977 if (mValue==
null)
return false;
980 v=
static_cast<const bool*
>(mValue);
986 if (mValue==
null)
return false;
988 const bool *vs=
static_cast<const bool*
>(mValue);
991 for (
int i=0;i<n;i++) v[i]=vs[i];
999 if (mValue==
null)
return false;
1004 for (
int i=0;i<n;i++) v[i]=vs[i];
1011 if (mValue==
null)
return false;
1013 if (!
isChar(isUnsigned))
return false;
1014 if (!isUnsigned)
return false;
1016 v=
static_cast<const unsigned char*
>(mValue);
1022 if (mValue==
null)
return false;
1024 const unsigned char *vs=
static_cast<const unsigned char*
>(mValue);
1026 v=
new unsigned char[n];
1027 for (
int i=0;i<n;i++) v[i]=vs[i];
1034 if (mValue==
null)
return false;
1036 if (!
isChar(isUnsigned))
return false;
1037 if (isUnsigned)
return false;
1039 v=
static_cast<const char*
>(mValue);
1045 if (mValue==
null)
return false;
1047 const char *vs=
static_cast<const char*
>(mValue);
1050 for (
int i=0;i<n;i++) v[i]=vs[i];
1056 if (mValue==
null)
return false;
1059 if (!isUnsigned)
return false;
1061 v=
static_cast<const unsigned short*
>(mValue);
1067 if (mValue==
null)
return false;
1069 const unsigned short *vs=
static_cast<const unsigned short*
>(mValue);
1071 v=
new unsigned short[n];
1072 for (
int i=0;i<n;i++) v[i]=vs[i];
1079 if (mValue==
null)
return false;
1082 if (isUnsigned)
return false;
1084 v=
static_cast<const short*
>(mValue);
1090 if (mValue==
null)
return false;
1092 const short *vs=
static_cast<const short*
>(mValue);
1095 for (
int i=0;i<n;i++) v[i]=vs[i];
1102 if (mValue==
null)
return false;
1104 if (!
isInt(isUnsigned))
return false;
1105 if (!isUnsigned)
return false;
1107 v=
static_cast<const unsigned int*
>(mValue);
1113 if (mValue==
null)
return false;
1115 const unsigned int *vs=
static_cast<const unsigned int*
>(mValue);
1117 v=
new unsigned int[n];
1118 for (
int i=0;i<n;i++) v[i]=vs[i];
1125 if (mValue==
null)
return false;
1127 if (!
isInt(isUnsigned))
return false;
1128 if (isUnsigned)
return false;
1130 v=
static_cast<const int*
>(mValue);
1137 if (mValue==
null)
return false;
1139 const int *vs=
static_cast<const int*
>(mValue);
1142 for (
int i=0;i<n;i++) v[i]=vs[i];
1149 if (mValue==
null)
return false;
1151 if (!
isLongInt(isUnsigned))
return false;
1152 if (!isUnsigned)
return false;
1154 v=
static_cast<const unsigned long int*
>(mValue);
1160 if (mValue==
null)
return false;
1162 const unsigned long int *vs=
static_cast<const unsigned long int*
>(mValue);
1164 v=
new unsigned long int[n];
1165 for (
int i=0;i<n;i++) v[i]=vs[i];
1172 if (mValue==
null)
return false;
1174 if (!
isLongInt(isUnsigned))
return false;
1175 if (isUnsigned)
return false;
1177 v=
static_cast<const long int*
>(mValue);
1183 if (mValue==
null)
return false;
1185 const long int *vs=
static_cast<const long int*
>(mValue);
1188 for (
int i=0;i<n;i++) v[i]=vs[i];
1195 if (mValue==
null)
return false;
1198 if (isUnsigned)
return false;
1200 v=
static_cast<const long long int*
>(mValue);
1206 if (mValue==
null)
return false;
1208 const long long int *vs=
static_cast<const long long int*
>(mValue);
1210 v=
new long long int[n];
1211 for (
int i=0;i<n;i++) v[i]=vs[i];
1218 if (mValue==
null)
return false;
1221 if (!isUnsigned)
return false;
1223 v=
static_cast<const unsigned long long int*
>(mValue);
1229 if (mValue==
null)
return false;
1231 const unsigned long long int *vs=
static_cast<const unsigned long long int*
>(mValue);
1233 v=
new unsigned long long int[n];
1234 for (
int i=0;i<n;i++) v[i]=vs[i];
1241 if (mValue==
null)
return false;
1244 v=
static_cast<const float*
>(mValue);
1250 if (mValue==
null)
return false;
1252 const float *vs=
static_cast<const float*
>(mValue);
1255 for (
int i=0;i<n;i++) v[i]=vs[i];
1263 if (mValue==
null)
return false;
1266 v=
static_cast<const double*
>(mValue);
1272 if (mValue==
null)
return false;
1274 const double *vs=
static_cast<const double*
>(mValue);
1277 for (
int i=0;i<n;i++) v[i]=vs[i];
1284 if (mValue==
null)
return false;
1287 v=
static_cast<const long double*
>(mValue);
1293 if (mValue==
null)
return false;
1295 const long double *vs=
static_cast<const long double*
>(mValue);
1297 v=
new long double[n];
1298 for (
int i=0;i<n;i++) v[i]=vs[i];
1315 return mDimensions[d];
1320 if (mValue==
null)
return false;
1321 if (mDimensions.size()!=3)
return false;
1324 nRows=mDimensions[
ROW];
1325 nCols=mDimensions[
COL];
1327 v=
static_cast<const double*
>(mValue);
1331 if (mValue==
null)
return false;
1332 if (mDimensions.size()!=3)
return false;
1335 nRows=mDimensions[
ROW];
1336 nCols=mDimensions[
COL];
1337 const double *vs=
static_cast<const double*
>(mValue);
1340 for (
int i=0;i<n;i++) v[i]=vs[i];
1363 if (mDimensions[DIM]==1) {
1368 if (token.compare(
"null")==0) {
1379 if (mDimensions[DIM]>0) {
1380 vs=
new T[mDimensions[
DIM]];
1381 for (
int i=0;i<mDimensions[
DIM];i++) {
this class describes a string
Definition: CORE_String.h:59
tBoolean isMultipleCardinality() const
verify if single cardinality
Definition: MM_Attribute.h:118
tBoolean isChar(tBoolean &isUnsigned) const
verify if the field is an short
Definition: MM_Attribute.h:192
tBoolean getValue(int &n, const unsigned int *&v) const
get the value vector of unsigned int by reference
Definition: MM_Attribute.h:1101
tBoolean isDouble() const
verify if the field is a double
Definition: MM_Attribute.h:156
void replaceAll(const tString &strToReplace, const tString &str)
replace all instances of strToReplace by str
Definition: CORE_String.h:215
void setValue(const long double &v)
set the value
Definition: MM_Attribute.h:374
This class is a primary field.
Definition: MM_Attribute.h:15
tBoolean isString() const
verify if the field is a string
Definition: MM_Attribute.h:204
void setValue(const int &nRows, const int &nCols, const vector< double > &v)
set the value of a matrix
Definition: MM_Attribute.h:773
tBoolean getValue(int &n, short *&v) const
get the value vector of short by coppiing
Definition: MM_Attribute.h:1089
void setValue(const unsigned char &v)
set the value
Definition: MM_Attribute.h:324
tBoolean getValue(int &n, const char *&v) const
get the value vector of int by reference
Definition: MM_Attribute.h:1033
tBoolean getValue(int &n, int *&v) const
get the value vector of int by coppiing the array must be destroyed
Definition: MM_Attribute.h:1136
tBoolean getValue(int &nRows, int &nCols, int &n, double *&v) const
Definition: MM_Attribute.h:1330
void setValue(const int &n, unsigned char *v, const tBoolean &isCopied)
set the value
Definition: MM_Attribute.h:597
static const tFlag DIM
Definition: MM_Attribute.h:21
void setValue(const int &n, long long int *v, const tBoolean &isCopied)
set the value
Definition: MM_Attribute.h:657
tBoolean isVector() const
isVector
Definition: MM_Attribute.h:140
void setIsSingleCardinality()
set simple cardinality
Definition: MM_Attribute.h:124
void setValue(const unsigned long long int &v)
set the value
Definition: MM_Attribute.h:314
tBoolean getValue(double &v) const
get the value
Definition: MM_Attribute.h:936
tBoolean getValue(unsigned char &v) const
get the value
Definition: MM_Attribute.h:899
tBoolean getValue(int &n, unsigned char *&v) const
get the value vector of int by coppiing
Definition: MM_Attribute.h:1021
void setValue(const vector< int > &value)
set the value
Definition: MM_Attribute.h:434
tBoolean getValue(int &n, const int *&v) const
get the value vector of int by reference
Definition: MM_Attribute.h:1124
tBoolean getValue(int &n, const double *&v) const
get the value vector of double by reference
Definition: MM_Attribute.h:1262
void setValue(const int &nRows, const int &nCols, const int &nValues, double *v, const tBoolean &isCopied)
Definition: MM_Attribute.h:737
tBoolean getValue(int &n, double *&v) const
get the value vector of double by coppiing
Definition: MM_Attribute.h:1271
tBoolean getValue(tBoolean &v) const
get the value
Definition: MM_Attribute.h:846
tBoolean getValue(int &n, bool *&v) const
get the value vector of boolean by coppiing
Definition: MM_Attribute.h:985
tBoolean getValue(int &n, unsigned long int *&v) const
get the value vector of long int by copping
Definition: MM_Attribute.h:1159
tBoolean isMatrix() const
isVector
Definition: MM_Attribute.h:145
tBoolean isLongDouble() const
verify if the field is a long double
Definition: MM_Attribute.h:151
void setValue(const tString &v)
set the value
Definition: MM_Attribute.h:238
void trim()
trim
Definition: CORE_String.h:605
#define tBoolean
Definition: types.h:48
double * createDoubleValue(const int &nValues)
set the value of a matrix
Definition: MM_Attribute.h:805
void setValue(const int &n, const unsigned char *&v, const tBoolean &isCopied)
set the value
Definition: MM_Attribute.h:568
void setValue(const long int &v)
set the value
Definition: MM_Attribute.h:294
tBoolean getValue(int &n, const unsigned long int *&v) const
get the value vector of unisgned long int by reference
Definition: MM_Attribute.h:1148
tBoolean getValue(int &n, const tString *&v) const
get the value string array by reference
Definition: MM_Attribute.h:967
static const tFlag COL
Definition: MM_Attribute.h:23
#define null
Definition: types.h:13
void setIsMultipleCardinality()
set simple cardinality
Definition: MM_Attribute.h:129
void setValue(const int &n, const tString *&v, const tBoolean &isCopied)
set the value
Definition: MM_Attribute.h:480
DEFINE_SVPTR(MM_Attribute)
void setValue(const int &nRows, const int &nCols, const int &nValues, const double *&v, const tBoolean &isCopied)
set the value of a matrix
Definition: MM_Attribute.h:742
void setValue(const char *v)
set the value
Definition: MM_Attribute.h:258
tBoolean getValue(int &nRows, int &nCols, int &n, const double *&v) const
get the value matrix double by reference
Definition: MM_Attribute.h:1319
void setValue(const int &v)
set the value
Definition: MM_Attribute.h:284
static void parse(const tString &str, unsigned char &c)
parse unsigned char c in str
Definition: CORE_String.h:418
void setValue(const vector< bool > &value)
set the value
Definition: MM_Attribute.h:403
tString nextToken()
return the next token
Definition: CORE_String.h:203
void setValue(const vector< tString > &value)
set the value
Definition: MM_Attribute.h:387
tBoolean getValue(unsigned int &v) const
get the value
Definition: MM_Attribute.h:913
tBoolean getValue(int &n, const unsigned char *&v) const
get the value vector of int by reference
Definition: MM_Attribute.h:1010
tBoolean getValue(int &n, const bool *&v) const
get the value vector of boolean by reference
Definition: MM_Attribute.h:976
tBoolean getValue(int &n, const long int *&v) const
get the value vector of long int by reference
Definition: MM_Attribute.h:1171
tBoolean isFloat() const
verify if the field is a double
Definition: MM_Attribute.h:161
tBoolean isSingleCardinality() const
verify if single cardinality
Definition: MM_Attribute.h:112
tBoolean getValue(int &n, long int *&v) const
get the value vector of long int by copping
Definition: MM_Attribute.h:1182
tBoolean getValue(int &n, long long int *&v) const
get the value vector of long int by copping
Definition: MM_Attribute.h:1205
tBoolean getValue(int &v) const
get the value
Definition: MM_Attribute.h:871
tBoolean isInt(tBoolean &isUnsigned) const
verify if the field is an int
Definition: MM_Attribute.h:178
void setValue(const double &v)
set the value
Definition: MM_Attribute.h:364
void setValue(const unsigned int &v)
set the value
Definition: MM_Attribute.h:344
tBoolean getValue(long int &v) const
get the value
Definition: MM_Attribute.h:878
tBoolean getValue(int &n, const long long int *&v) const
get the value vector of long int by reference
Definition: MM_Attribute.h:1194
tString getCardinalityToString() const
get Cardinality
Definition: MM_Attribute.h:98
virtual ~MM_Attribute(void)
destroy an object.
Definition: MM_Attribute.cpp:38
tBoolean getValue(int &n, long double *&v) const
get the value vector of double by coppiing
Definition: MM_Attribute.h:1292
tBoolean getValue(char &v) const
get the value
Definition: MM_Attribute.h:857
void setValue(const int &n, const int *&v, const tBoolean &isCopied)
set the value
Definition: MM_Attribute.h:663
void setValue(const char &v)
set the value
Definition: MM_Attribute.h:263
void setValue(const int &n, const bool *&v, const tBoolean &isCopied)
set the value
Definition: MM_Attribute.h:509
tBoolean getValue(int &n, float *&v) const
get the value vector of float by coppiing
Definition: MM_Attribute.h:1249
tString getValueToString(const tString &separator, const tString &start, const tString &end) const
get the value in string
Definition: MM_Attribute.cpp:270
void setCardinality(const tString &card)
get Cardinality
Definition: MM_Attribute.h:105
tBoolean getValue(int &n, const long double *&v) const
get the value vector of long double by reference
Definition: MM_Attribute.h:1283
tBoolean isBoolean() const
verify if the field is an short
Definition: MM_Attribute.h:198
tBoolean isShortInt(tBoolean &isUnsigned) const
verify if the field is an int
Definition: MM_Attribute.h:184
tBoolean getValue(short &v) const
get the value
Definition: MM_Attribute.h:864
void setValue(const unsigned long int &v)
set the value
Definition: MM_Attribute.h:354
tBoolean getValue(int &n, const unsigned long long int *&v) const
get the value vector of long int by reference
Definition: MM_Attribute.h:1217
tBoolean getValue(int &n, const unsigned short *&v) const
get the value vector of unsigned short by reference
Definition: MM_Attribute.h:1055
tBoolean getValue(int &n, char *&v) const
get the value vector of int by coppiing
Definition: MM_Attribute.h:1044
static SP::MM_Attribute New()
creta a matlab class
Definition: MM_Attribute.h:84
void setValue(const tString &type, const tString &card, const tString &value, const tString &separator, const tString &start, const tString &end)
set generic value
Definition: MM_Attribute.cpp:187
This class is a data.
Definition: MM_Data.h:17
virtual tString toString() const
turn the class into string
Definition: MM_Attribute.h:1347
tBoolean getValue(int &n, unsigned int *&v) const
get the value vector of unsigned int by coppiing
Definition: MM_Attribute.h:1112
void setValue(const int &n, long int *v, const tBoolean &isCopied)
set the value
Definition: MM_Attribute.h:627
tBoolean getValue(unsigned long int &v) const
get the value size_t = unsigned long int
Definition: MM_Attribute.h:922
MM_Attribute(void)
create an object
Definition: MM_Attribute.cpp:28
void setValue(const vector< unsigned char > &value)
set the value
Definition: MM_Attribute.h:419
#define tString
Definition: types.h:49
tBoolean getValue(int &n, const short *&v) const
get the value vector of short by reference
Definition: MM_Attribute.h:1078
tBoolean getValue(long double &v) const
get the value
Definition: MM_Attribute.h:943
tBoolean isLongLongInt(tBoolean &isUnsigned) const
verify if the field is a long long int
Definition: MM_Attribute.h:172
tBoolean getValue(int &n, const float *&v) const
get the value vector of float by reference
Definition: MM_Attribute.h:1240
tBoolean getValue(vector< tString > &v) const
get the value string array
Definition: MM_Attribute.h:955
tBoolean isLongInt(tBoolean &isUnsigned) const
verify if the field is a long int
Definition: MM_Attribute.h:166
void setValue(const int &n, const long int *&v, const tBoolean &isCopied)
set the value
Definition: MM_Attribute.h:602
void setValue(const vector< double > &value)
set the value
Definition: MM_Attribute.h:449
void setValue(const int &n, const long double *&v, const tBoolean &isCopied)
set the value
Definition: MM_Attribute.h:712
double * createValue(const int &nRows, const int &nCols, const int &nValues)
set the value of a matrix
Definition: MM_Attribute.h:791
tBoolean getValue(int &n, tString *&v) const
get the value string array by copiing
Definition: MM_Attribute.h:998
void setValue(const tBoolean &v)
set the value
Definition: MM_Attribute.h:248
static const tFlag ROW
Definition: MM_Attribute.h:22
void setValue(const int &n, const double *&v, const tBoolean &isCopied)
set the value
Definition: MM_Attribute.h:688
int getDimension(const tFlag &d) const
get the dimension of row , col or size @ see DIM
Definition: MM_Attribute.h:1314
virtual tString getFieldType() const
get type
Definition: MM_Attribute.h:218
void setValue(const unsigned short &v)
set the value
Definition: MM_Attribute.h:334
tBoolean getValue(float &v) const
get the value
Definition: MM_Attribute.h:929
tBoolean getValue(unsigned long long int &v) const
get the value
Definition: MM_Attribute.h:892
void setValue(const int &n, const long long int *&v, const tBoolean &isCopied)
set the value
Definition: MM_Attribute.h:632
void setValue(const short &v)
set the value
Definition: MM_Attribute.h:273
tBoolean getValue(int &n, unsigned long long int *&v) const
get the value vector of long int by copping
Definition: MM_Attribute.h:1228
void setValue(const int &n, const unsigned int *&v, const tBoolean &isCopied)
set the value
Definition: MM_Attribute.h:536
tBoolean getValue(tString &v) const
get the value
Definition: MM_Attribute.h:836
DEFINE_SPTR(MM_Attribute)
void setValue(const vector< long double > &value)
set the value
Definition: MM_Attribute.h:464
void setValue(const long long int &v)
set the value
Definition: MM_Attribute.h:304
tBoolean getValue(unsigned short &v) const
get the value
Definition: MM_Attribute.h:906
int getTokensNumber() const
get the number of tokens
Definition: CORE_String.h:187
tBoolean getValue(int &n, unsigned short *&v) const
get the value vector of short by coppiing
Definition: MM_Attribute.h:1066
int * createIntValue(const int &nValues)
set the value of a matrix
Definition: MM_Attribute.h:816
void setValue(const int &n, unsigned int *v, const tBoolean &isCopied)
set the value
Definition: MM_Attribute.h:563
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:106
#define tFlag
Definition: types.h:14
tBoolean getValue(long long int &v) const
get the value
Definition: MM_Attribute.h:885