Ignore:
Timestamp:
10/18/19 15:40:35 (5 years ago)
Author:
ymipsl
Message:

implementing first guess for service functionnalities.

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_SERVICES/src/node/file.cpp

    r1639 r1761  
    323323      // Done by classical server or secondary server 
    324324      // This condition should be changed soon 
    325       if (CServer::serverLevel == 0 || CServer::serverLevel == 2) 
    326       { 
     325//ym      if (CServer::serverLevel == 0 || CServer::serverLevel == 2) 
     326       if (context->getServiceType()==CServicesManager::IO_SERVER || context->getServiceType()==CServicesManager::OUT_SERVER) 
     327       { 
    327328        if (mode.isEmpty() || mode.getValue() == mode_attr::write) 
    328329        { 
     
    349350      // Done by classical server or secondary server 
    350351      // TODO: This condition should be changed soon. It only works with maximum number of level as 2 
    351       if (CServer::serverLevel == 0 || CServer::serverLevel == 1) 
     352 
     353//ym      if (CServer::serverLevel == 0 || CServer::serverLevel == 1) 
     354      if (context->getServiceType()==CServicesManager::IO_SERVER || context->getServiceType()==CServicesManager::GATHERER) 
    352355      { 
    353356        if (!mode.isEmpty() && mode.getValue() == mode_attr::read) 
Note: See TracChangeset for help on using the changeset viewer.