Ignore:
Timestamp:
10/30/15 16:33:49 (6 years ago)
Author:
rlacroix
Message:

File/Variable?: Add an helper function to get the output name.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/node/file.cpp

    r771 r773  
    4747 
    4848   //---------------------------------------------------------------- 
     49 
     50   const StdString& CFile::getFileOutputName(void) const 
     51   { 
     52     return name.isEmpty() ? getId() : name; 
     53   } 
     54 
     55   //---------------------------------------------------------------- 
    4956   /*! 
    5057   \brief Get data writer object. 
     
    346353      if (!allDomainEmpty) 
    347354      { 
    348          StdString filename = (!name.isEmpty()) ?   name.getValue() : getId(); 
     355         StdString filename = getFileOutputName(); 
    349356         StdOStringStream oss; 
    350357         oss << filename; 
     
    457464    if (!allDomainEmpty) 
    458465    { 
    459       StdString filename = (!name.isEmpty()) ? name.getValue() : getId(); 
     466      StdString filename = getFileOutputName(); 
    460467      StdOStringStream oss; 
    461468      oss << filename; 
Note: See TracChangeset for help on using the changeset viewer.