Ignore:
Timestamp:
Dec 15, 2015, 1:19:48 PM (9 years ago)
Author:
DHERBOMEZ Gérald
Message:

Delete deprecated call to shared memories. Use I/O mechanism instead.
Adjustement of dllimport and dllexport macros;

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/StdDbtPlayerComponents/DbtPlyAlascaManager.cpp

    r108 r111  
    2929static ComponentFactory<DbtPlyAlascaManager> sFactory("DbtPlyAlascaManager");
    3030
    31 static const char * kAlaskaMemoryName = "alasca";
     31//static const char * kAlaskaMemoryName = "alasca";// deprecated
    3232
    3333//////////////////////////////////////////////////////////////////////////
     
    3838    LOG_TRACE("constructor(" << name << ")");
    3939
    40     mShMem = new ShMem(kAlaskaMemoryName, sizeof(ScanAlascaData));
     40    // mShMem = new ShMem(kAlaskaMemoryName, sizeof(ScanAlascaData)); // deprecated
    4141}
    4242
     
    4646{
    4747    LOG_TRACE("destructor");
    48     delete mShMem;
     48    //delete mShMem; // deprecated
    4949}
    5050
     
    121121    int32_t utcMagicWord = 0;
    122122    mDataFile.read(reinterpret_cast<char *>(&(utcMagicWord)), sizeof(utcMagicWord));
    123     if (UTC_MAGIC_WORD != utcMagicWord) {
     123   /* if (UTC_MAGIC_WORD != utcMagicWord) {
    124124        LOG_WARN("corrupted data, do not use them!");
    125125        LOG_DEBUG("wrong magic word: EXPECTED=" << UTC_MAGIC_WORD << ", ACTUAL=" << utcMagicWord);
     
    127127        LOG_TRACE("writing scan");
    128128        mShMem->write(&mAlascaData, sizeof(ScanAlascaData));
    129     }
     129    }*/ // deprecated
    130130
    131131    if (mVerbose) {
Note: See TracChangeset for help on using the changeset viewer.