Changeset 191
- Timestamp:
- 05/11/11 15:12:45 (14 years ago)
- Location:
- XMLIO_V2/dev/dev_rv/src/xmlio
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
XMLIO_V2/dev/dev_rv/src/xmlio/buffer_pair.hpp
r190 r191 36 36 /// Accesseur /// 37 37 CLinearBuffer & getCurrentBuffer(void); 38 38 39 /// Traitements divers /// 40 void wait(void); 41 void sendCurrentBuffer(void); 42 39 43 /// Destructeur /// 40 44 virtual ~CBufferPair(void); … … 43 47 44 48 /// Test /// 45 bool mustBeSent(void); 46 47 /// Traitements divers /// 48 void wait(void); 49 void sendCurrentBuffer(void); 49 bool mustBeSent(void); 50 50 51 51 private : -
XMLIO_V2/dev/dev_rv/src/xmlio/client.cpp
r190 r191 48 48 void CClient::setContext(const StdString & idContext) 49 49 { 50 this->bpair.prepareRequest( 0, 1, &idContext,50 this->bpair.prepareRequest(1, 0, &idContext, 51 51 CLinearBuffer::NULL_ARG, 52 52 CLinearBuffer::NULL_ARG, 53 53 CLinearBuffer::NULL_ARG); 54 this->bpair.getCurrentBuffer(). 54 this->bpair.getCurrentBuffer().appendString(idContext); 55 55 } 56 56 … … 59 59 void CClient::updateCalendar(long int timestep) 60 60 { 61 61 this->bpair.prepareRequest(1, 1, ×tep, 62 CLinearBuffer::NULL_ARG, 63 CLinearBuffer::NULL_ARG, 64 CLinearBuffer::NULL_ARG); 65 this->bpair.getCurrentBuffer().appendInt(timestep); 62 66 } 63 67 … … 66 70 void CClient::sendData(const StdString & fieldId, const ARRAY(float, 1) dataArray) 67 71 { 68 72 this->bpair.prepareRequest(2, 0, &fieldId, &dataArray, 73 CLinearBuffer::NULL_ARG, 74 CLinearBuffer::NULL_ARG); 75 this->bpair.getCurrentBuffer().appendString(fieldId); 76 this->bpair.getCurrentBuffer().appendFloatArray(dataArray); 69 77 } 70 78 … … 73 81 void CClient::sendData(const StdString & fieldId, const ARRAY(double, 1) dataArray) 74 82 { 75 83 this->bpair.prepareRequest(2, 0, &fieldId, &dataArray, 84 CLinearBuffer::NULL_ARG, 85 CLinearBuffer::NULL_ARG); 86 this->bpair.getCurrentBuffer().appendString(fieldId); 87 this->bpair.getCurrentBuffer().appendDoubleArray(dataArray); 76 88 } 77 89 -
XMLIO_V2/dev/dev_rv/src/xmlio/config/context_attribute.conf
r152 r191 1 DECLARE_ATTRIBUTE(StdString, calendar_type) 2 DECLARE_ATTRIBUTE(StdString, start_date) 1 DECLARE_ATTRIBUTE(StdString, calendar_type); 2 DECLARE_ATTRIBUTE(StdString, start_date); -
XMLIO_V2/dev/dev_rv/src/xmlio/config/field_attribute.conf
r152 r191 15 15 DECLARE_ATTRIBUTE(StdString, axis_ref) 16 16 DECLARE_ATTRIBUTE(StdString, grid_ref) 17 DECLARE_ATTRIBUTE(StdString, zoom_ref)17 //DECLARE_ATTRIBUTE(StdString, zoom_ref) 18 18 DECLARE_ATTRIBUTE(StdString, field_ref)
Note: See TracChangeset
for help on using the changeset viewer.