Changeset 651 for XIOS/trunk/src/node/file.hpp
- Timestamp:
- 07/24/15 16:40:05 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/node/file.hpp
r645 r651 53 53 enum EEventId 54 54 { 55 EVENT_ID_ADD_FIELD =0,EVENT_ID_ADD_FIELD_GROUP, EVENT_ID_ADD_VARIABLE,55 EVENT_ID_ADD_FIELD, EVENT_ID_ADD_FIELD_GROUP, EVENT_ID_ADD_VARIABLE, 56 56 EVENT_ID_ADD_VARIABLE_GROUP, EVENT_ID_CREATE_ENABLED_FIELDS 57 } 57 }; 58 58 59 59 typedef CFileAttributes RelAttributes; … … 62 62 /// Constructeurs /// 63 63 CFile(void); 64 explicit CFile(const StdString 65 CFile(const CFile 66 CFile(const CFile 64 explicit CFile(const StdString& id); 65 CFile(const CFile& file); // Not implemented yet. 66 CFile(const CFile* const file); // Not implemented yet. 67 67 68 68 /// Destructeur /// … … 84 84 public : 85 85 // Some functions to verify state of file 86 bool isSyncTime(void) 87 bool checkSplit(void) 88 bool checkSync(void) 89 void checkFile(void) 90 void initFile(void) 86 bool isSyncTime(void); 87 bool checkSplit(void); 88 bool checkSync(void); 89 void checkFile(void); 90 void initFile(void); 91 91 92 92 /// Mutateurs /// … … 99 99 void createHeader(void); 100 100 void openInReadMode(void); 101 void close(void) 101 void close(void); 102 102 103 103 // Some processing on file 104 104 void solveFieldRefInheritance(bool apply); 105 void processEnabledFile(void) 105 void processEnabledFile(void); 106 106 void solveAllRefOfEnabledFields(bool sendToServer); 107 107 void buildFilterGraphOfEnabledFields(CGarbageCollector& gc); … … 110 110 111 111 // Add component into file 112 CField* addField(const string& id ="");113 CFieldGroup* addFieldGroup(const string& id ="");114 CVariable* addVariable(const string& id ="");115 CVariableGroup* addVariableGroup(const string& id ="");112 CField* addField(const string& id = ""); 113 CFieldGroup* addFieldGroup(const string& id = ""); 114 CVariable* addVariable(const string& id = ""); 115 CVariableGroup* addVariableGroup(const string& id = ""); 116 116 117 117 // Send info to serever 118 118 void sendEnabledFields(); 119 void sendAddField(const string& id ="");120 void sendAddFieldGroup(const string& id ="");119 void sendAddField(const string& id = ""); 120 void sendAddFieldGroup(const string& id = ""); 121 121 void sendAddAllVariables(); 122 void sendAddVariable(const string& id ="");123 void sendAddVariableGroup(const string& id ="");122 void sendAddVariable(const string& id = ""); 123 void sendAddVariableGroup(const string& id = ""); 124 124 125 125 // Receive info from client 126 static void recvAddField(CEventServer& event) 127 void recvAddField(CBufferIn& buffer) 128 static void recvAddFieldGroup(CEventServer& event) 129 void recvAddFieldGroup(CBufferIn& buffer) 130 static void recvAddVariable(CEventServer& event) 131 void recvAddVariable(CBufferIn& buffer) 132 static void recvAddVariableGroup(CEventServer& event) 133 void recvAddVariableGroup(CBufferIn& buffer) 126 static void recvAddField(CEventServer& event); 127 void recvAddField(CBufferIn& buffer); 128 static void recvAddFieldGroup(CEventServer& event); 129 void recvAddFieldGroup(CBufferIn& buffer); 130 static void recvAddVariable(CEventServer& event); 131 void recvAddVariable(CBufferIn& buffer); 132 static void recvAddVariableGroup(CEventServer& event); 133 void recvAddVariableGroup(CBufferIn& buffer); 134 134 135 135 // Dispatch event 136 static bool dispatchEvent(CEventServer& event) 136 static bool dispatchEvent(CEventServer& event); 137 137 138 138 public: … … 144 144 public: 145 145 /// Traitements /// 146 virtual void solveDescInheritance(bool apply, const CAttributeMap 146 virtual void solveDescInheritance(bool apply, const CAttributeMap* const parent = 0); 147 147 148 148 /// Autres /// 149 virtual void parse(xml::CXMLNode 149 virtual void parse(xml::CXMLNode& node); 150 150 virtual StdString toString(void) const; 151 151 public: 152 152 153 CDate * lastSync;154 CDate * lastSplit;153 CDate lastSync; 154 CDate lastSplit; 155 155 int nbAxis, nbDomains; 156 bool isOpen 157 bool allDomainEmpty 158 MPI_Comm fileComm 156 bool isOpen; 157 bool allDomainEmpty; 158 MPI_Comm fileComm; 159 159 160 160 private : 161 161 /// Propriétés privées /// 162 162 CFieldGroup* vFieldGroup; 163 CVariableGroup* vVariableGroup 163 CVariableGroup* vVariableGroup; 164 164 boost::shared_ptr<CDataOutput> data_out; 165 165 boost::shared_ptr<CDataInput> data_in; … … 167 167 168 168 public: 169 // virtual void toBinary (StdOStream 170 // virtual void fromBinary(StdIStream 169 // virtual void toBinary (StdOStream& os) const; 170 // virtual void fromBinary(StdIStream& is); 171 171 172 172 }; // class CFile
Note: See TracChangeset
for help on using the changeset viewer.