1 #ifndef _XMEDDATAMODEL_H_
2 #define _XMEDDATAMODEL_H_
4 #include <SALOMEconfig.h>
5 #include CORBA_CLIENT_HEADER(MEDDataManager)
7 #include "MEDOPGUI.hxx"
10 // =================================================================
11 // Definition of an atom in the data model as an implementation of
12 // the virtual class DataObject
13 // =================================================================
15 #include "DataObject.hxx"
16 class MEDOPGUI_EXPORT XmedDataObject: public DataObject {
19 virtual string getPath();
21 void setFieldHandler(MEDOP::FieldHandler fieldHandler);
22 MEDOP::FieldHandler * getFieldHandler();
24 static const int NB_TYPE_OF_FIELDS = 4;
25 static const char * mapTypeOfFieldLabel[NB_TYPE_OF_FIELDS];
28 MEDOP::FieldHandler _fieldHandler;
29 string _getTypedFieldLabel();
33 // =================================================================
34 // Definition of the data model as an implementation of the virtual
35 // class DataModel. It implements the DataObject factory.
36 // =================================================================
38 #include "DataModel.hxx"
39 class MEDOPGUI_EXPORT XmedDataModel: public DataModel {
41 XmedDataModel():DataModel() {};
42 virtual DataObject * newDataObject();
46 // =================================================================
47 // Base class for data processing
48 // =================================================================
51 // 1) Create an instance, call the "process" function,
52 // then get the result you are interested in, using the corresponding
53 // "result*" function.
55 // 2) Alternativly, you can just call directly the suitable master
56 // "get*" function to process and get the result you are interested
59 #include "DataProcessor.hxx"
61 class MEDOPGUI_EXPORT XmedDataProcessor : public DataProcessor {
63 XmedDataProcessor(DataModel * dataModel):DataProcessor(dataModel) {};
65 MEDOP::FieldHandlerList * getResultingFieldHandlerList();
66 MEDOP::FieldIdList * getResultingFieldIdList();
69 virtual void preprocess(QStringList itemNameIdList);
70 virtual void processDataObject(DataObject * dataObject);
73 MEDOP::FieldHandlerList_var _resultingFieldHandlerList;
74 MEDOP::FieldIdList_var _resultingFieldIdList;
80 #endif // _XMEDDATAMODEL_H_