template<int t> struct StudyTypeName {
static const char *Name(){
return "UnknowStudyType";
}
};
template<> struct StudyTypeName<eFunction> {
static const char *Name(){
return "Function";
}
};
template<> struct StudyTypeName<eIndication> {
static const char *Name() {
return "Indication";
}
};
template<> struct StudyTypeName<eStrategy> {
static const char *Name() {
return "Strategy";
}
};
StudyTypeName<type>::Name()