move the getType() function implementation from hpp file to cpp file, see issue 557

This commit is contained in:
yikenan 2022-02-04 16:04:25 +08:00
parent 07e895f0fe
commit a807640b48
4 changed files with 77 additions and 52 deletions

View File

@ -28,6 +28,11 @@ namespace oatpp { namespace data { namespace mapping { namespace type {
namespace __class {
const ClassId Any::CLASS_ID("Any");
Type* Any::getType() {
static Type type(CLASS_ID);
return &type;
}
}
Any::Any()

View File

@ -44,10 +44,7 @@ namespace __class {
*/
static const ClassId CLASS_ID;
static Type *getType() {
static Type type(CLASS_ID);
return &type;
}
static Type *getType();
};

View File

@ -125,6 +125,65 @@ namespace __class {
const ClassId Boolean::CLASS_ID("Boolean");
Type* String::getType(){
static Type type(CLASS_ID);
return &type;
}
Type* Int8::getType(){
static Type type(CLASS_ID);
return &type;
}
Type* UInt8::getType(){
static Type type(CLASS_ID);
return &type;
}
Type* Int16::getType(){
static Type type(CLASS_ID);
return &type;
}
Type* UInt16::getType(){
static Type type(CLASS_ID);
return &type;
}
Type* Int32::getType(){
static Type type(CLASS_ID);
return &type;
}
Type* UInt32::getType(){
static Type type(CLASS_ID);
return &type;
}
Type* Int64::getType(){
static Type type(CLASS_ID);
return &type;
}
Type* UInt64::getType(){
static Type type(CLASS_ID);
return &type;
}
Type* Float32::getType(){
static Type type(CLASS_ID);
return &type;
}
Type* Float64::getType(){
static Type type(CLASS_ID);
return &type;
}
Type* Boolean::getType(){
static Type type(CLASS_ID);
return &type;
}
}
}}}}

View File

@ -546,10 +546,7 @@ namespace __class {
public:
static const ClassId CLASS_ID;
static Type* getType(){
static Type type(CLASS_ID);
return &type;
}
static Type* getType();
};
@ -557,10 +554,7 @@ namespace __class {
public:
static const ClassId CLASS_ID;
static Type* getType(){
static Type type(CLASS_ID);
return &type;
}
static Type* getType();
};
@ -568,10 +562,7 @@ namespace __class {
public:
static const ClassId CLASS_ID;
static Type* getType(){
static Type type(CLASS_ID);
return &type;
}
static Type* getType();
};
@ -579,10 +570,7 @@ namespace __class {
public:
static const ClassId CLASS_ID;
static Type* getType(){
static Type type(CLASS_ID);
return &type;
}
static Type* getType();
};
@ -590,10 +578,7 @@ namespace __class {
public:
static const ClassId CLASS_ID;
static Type* getType(){
static Type type(CLASS_ID);
return &type;
}
static Type* getType();
};
@ -601,10 +586,7 @@ namespace __class {
public:
static const ClassId CLASS_ID;
static Type* getType(){
static Type type(CLASS_ID);
return &type;
}
static Type* getType();
};
@ -612,10 +594,7 @@ namespace __class {
public:
static const ClassId CLASS_ID;
static Type* getType(){
static Type type(CLASS_ID);
return &type;
}
static Type* getType();
};
@ -623,10 +602,7 @@ namespace __class {
public:
static const ClassId CLASS_ID;
static Type* getType(){
static Type type(CLASS_ID);
return &type;
}
static Type* getType();
};
@ -634,10 +610,7 @@ namespace __class {
public:
static const ClassId CLASS_ID;
static Type* getType(){
static Type type(CLASS_ID);
return &type;
}
static Type* getType();
};
@ -645,10 +618,7 @@ namespace __class {
public:
static const ClassId CLASS_ID;
static Type* getType(){
static Type type(CLASS_ID);
return &type;
}
static Type* getType();
};
@ -656,10 +626,7 @@ namespace __class {
public:
static const ClassId CLASS_ID;
static Type* getType(){
static Type type(CLASS_ID);
return &type;
}
static Type* getType();
};
@ -667,10 +634,7 @@ namespace __class {
public:
static const ClassId CLASS_ID;
static Type* getType(){
static Type type(CLASS_ID);
return &type;
}
static Type* getType();
};