Changeset 191


Ignore:
Timestamp:
05/11/11 15:12:45 (13 years ago)
Author:
hozdoba
Message:
 
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  
    3636            /// Accesseur ///     
    3737            CLinearBuffer & getCurrentBuffer(void); 
    38                             
     38             
     39            /// Traitements divers /// 
     40            void wait(void); 
     41            void sendCurrentBuffer(void);  
     42                         
    3943            /// Destructeur /// 
    4044            virtual ~CBufferPair(void); 
     
    4347             
    4448            /// Test /// 
    45             bool mustBeSent(void); 
    46              
    47             /// Traitements divers /// 
    48             void wait(void); 
    49             void sendCurrentBuffer(void);            
     49            bool mustBeSent(void);            
    5050 
    5151         private : 
  • XMLIO_V2/dev/dev_rv/src/xmlio/client.cpp

    r190 r191  
    4848   void CClient::setContext(const StdString & idContext) 
    4949   { 
    50       this->bpair.prepareRequest(0, 1, &idContext, 
     50      this->bpair.prepareRequest(1, 0, &idContext, 
    5151                                       CLinearBuffer::NULL_ARG, 
    5252                                       CLinearBuffer::NULL_ARG, 
    5353                                       CLinearBuffer::NULL_ARG); 
    54       this->bpair.getCurrentBuffer(). appendString(idContext); 
     54      this->bpair.getCurrentBuffer().appendString(idContext); 
    5555   } 
    5656    
     
    5959   void CClient::updateCalendar(long int timestep) 
    6060   { 
    61        
     61      this->bpair.prepareRequest(1, 1, &timestep, 
     62                                       CLinearBuffer::NULL_ARG, 
     63                                       CLinearBuffer::NULL_ARG, 
     64                                       CLinearBuffer::NULL_ARG); 
     65      this->bpair.getCurrentBuffer().appendInt(timestep); 
    6266   } 
    6367    
     
    6670   void CClient::sendData(const StdString & fieldId, const ARRAY(float, 1) dataArray) 
    6771   { 
    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); 
    6977   } 
    7078    
     
    7381   void CClient::sendData(const StdString & fieldId, const ARRAY(double, 1) dataArray) 
    7482   { 
    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); 
    7688   } 
    7789 
  • 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) 
     1DECLARE_ATTRIBUTE(StdString, calendar_type); 
     2DECLARE_ATTRIBUTE(StdString, start_date); 
  • XMLIO_V2/dev/dev_rv/src/xmlio/config/field_attribute.conf

    r152 r191  
    1515DECLARE_ATTRIBUTE(StdString, axis_ref) 
    1616DECLARE_ATTRIBUTE(StdString, grid_ref) 
    17 DECLARE_ATTRIBUTE(StdString, zoom_ref) 
     17//DECLARE_ATTRIBUTE(StdString, zoom_ref) 
    1818DECLARE_ATTRIBUTE(StdString, field_ref) 
Note: See TracChangeset for help on using the changeset viewer.