Changeset 509 for XIOS/trunk/src/node/field.hpp
- Timestamp:
- 11/13/14 15:09:14 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/node/field.hpp
r501 r509 18 18 19 19 namespace xios { 20 20 21 21 /// ////////////////////// Déclarations ////////////////////// /// 22 22 … … 56 56 EVENT_ID_UPDATE_DATA, EVENT_ID_ADD_VARIABLE, EVENT_ID_ADD_VARIABLE_GROUP 57 57 } ; 58 58 59 59 /// Constructeurs /// 60 60 CField(void); … … 83 83 84 84 boost::shared_ptr<func::CFunctor> getFieldOperation(void) const; 85 85 86 86 CArray<double, 1> getData(void) const; 87 87 … … 95 95 template <int N> bool updateData(const CArray<double, N>& data); 96 96 bool updateDataFromExpression(const CArray<double, 1>& data); 97 void setDataFromExpression(const CArray<double, 1>& _data) ; 98 97 void setDataFromExpression(const CArray<double, 1>& _data) ; 98 99 99 bool updateDataServer 100 100 (const CDate & currDate, 101 101 const std::deque< CArray<double, 1>* > storedClient); 102 102 103 std::map<int, StdSize> getGridDataSize(); 104 103 105 public : 104 106 … … 116 118 void solveGridReference(void); 117 119 void solveOperation(void); 120 void solveCheckMaskIndex(bool doSendingIndex); 121 void solveAllReferenceEnabledField(bool doSending2Sever); 122 void buildAllExpressionEnabledField(); 123 void solveGridDomainAxisRef(bool checkAtt); 124 void removeRefInheritance(); // Remove all reference of current field (it refers to itself) 118 125 119 126 // virtual void fromBinary(StdIStream & is); … … 125 132 static StdString GetName(void); 126 133 static StdString GetDefName(void); 127 134 128 135 static ENodeType GetType(void); 129 136 130 137 template <int N> void setData(const CArray<double, N>& _data) ; 131 138 static bool dispatchEvent(CEventServer& event) ; … … 139 146 void parse(xml::CXMLNode & node) ; 140 147 CArray<double,1>* getInstantData(void) ; 141 148 142 149 void setVirtualVariableGroup(CVariableGroup* newVVariableGroup); 143 150 void setVirtualVariableGroup(void); … … 145 152 vector<CVariable*> getAllVariables(void) const; 146 153 virtual void solveDescInheritance(bool apply, const CAttributeMap * const parent = 0); 147 154 148 155 CVariable* addVariable(const string& id="") ; 149 156 CVariableGroup* addVariableGroup(const string& id="") ; … … 154 161 static void recvAddVariableGroup(CEventServer& event) ; 155 162 void recvAddVariableGroup(CBufferIn& buffer) ; 156 163 void sendAddAllVariables(); 164 165 166 const std::pair<StdString, StdString>& getDomainAxisIds(); 157 167 public : 158 168 159 169 /// Propriétés privées /// 160 170 CVariableGroup* vVariableGroup ; 161 171 162 172 std::vector<CField*> refObject; 163 173 CField* baseRefObject; … … 172 182 boost::shared_ptr<CDate> last_Write, last_operation; 173 183 boost::shared_ptr<CDate> lastlast_Write_srv,last_Write_srv, last_operation_srv; 174 184 175 185 boost::shared_ptr<func::CFunctor> foperation; 176 186 map<int,boost::shared_ptr<func::CFunctor> > foperation_srv; 177 187 178 188 CArray<double, 1> data; 179 189 CArray<double, 1> instantData; … … 183 193 bool isFirstOperation ; 184 194 string content ; 185 195 186 196 list< pair<CField *,int> > fieldDependency ; 187 197 void buildExpression(void) ; … … 195 205 void setSlot(int slotId); 196 206 bool processed ; 207 bool areAllReferenceSolved; 208 bool areAllExpressionBuilt; 209 std::pair<StdString,StdString> domAxisIds_; 197 210 198 211 }; // class CField
Note: See TracChangeset
for help on using the changeset viewer.