Home | History | Annotate | Download | only in src
      1 #include "dmt.hpp"
      2 
      3 #ifndef NO_CAF
      4 #ifndef DM_NO_LOCKING
      5 #include "datainputstream.h"
      6 
      7 
      8 DmtEvent::DmtEvent( DataInputStream* pInputStream )
      9 {
     10   if ( !pInputStream )
     11     return;
     12 
     13   char* pStr; pInputStream->readUTF(pStr);
     14   m_strURI = pStr;
     15 
     16 
     17   free( pStr );
     18 
     19   int nKeyNum;
     20   for ( pInputStream->readInt(nKeyNum); nKeyNum > 0; nKeyNum-- ) {
     21     pInputStream->readUTF(pStr);
     22     int nValue;  pInputStream->readInt(nValue);
     23 
     24     m_mapKeys.put( pStr, nValue );
     25 
     26     free( pStr );
     27   }
     28 
     29   pInputStream->readLongLong( m_llCommitID );
     30 }
     31 
     32 #endif
     33 #endif
     34