00001 #ifndef Impala_Core_Feature_Concept_h 00002 #define Impala_Core_Feature_Concept_h 00003 00004 #include "Basis/String.h" 00005 #include "Core/Database/RawDataSet.h" 00006 #include "Core/Feature/FeatureDefinition.h" 00007 00008 namespace Impala 00009 { 00010 namespace Core 00011 { 00012 namespace Feature 00013 { 00014 00015 00016 class Concept 00017 { 00018 public: 00019 00020 Concept() 00021 { 00022 mAnnoSet = 0; 00023 mConceptSetName = "noName"; 00024 mName = "noName"; 00025 } 00026 00027 Concept(Database::RawDataSet* annoSet, String conceptSetName, 00028 String modelType,String name) 00029 { 00030 mAnnoSet = annoSet; 00031 mConceptSetName = conceptSetName; 00032 mModelType = modelType; 00033 mName = name; 00034 } 00035 00036 String 00037 GetName() const 00038 { 00039 return mName; 00040 } 00041 00042 String 00043 GetModelName(const FeatureDefinition& feature) const 00044 { 00045 return mAnnoSet->GetFilePathConceptModel(mConceptSetName, mModelType, 00046 feature, mName+".model", 00047 false, false); 00048 } 00049 00050 private: 00051 00052 Database::RawDataSet* mAnnoSet; 00053 String mConceptSetName; 00054 String mModelType; 00055 String mName; 00056 00057 }; 00058 00059 } // namespace Feature 00060 } // namespace Core 00061 } // namespace Impala 00062 00063 #endif