Ignore:
Timestamp:
05/11/11 15:12:45 (13 years ago)
Author:
hozdoba
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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 
Note: See TracChangeset for help on using the changeset viewer.