- Timestamp:
- 04/12/17 17:39:10 (7 years ago)
- Location:
- XIOS/trunk/src/node
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/node/file.cpp
r1046 r1090 50 50 //---------------------------------------------------------------- 51 51 52 const StdString &CFile::getFileOutputName(void) const53 { 54 return name.isEmpty() ? getId() : name;52 const StdString CFile::getFileOutputName(void) const 53 { 54 return (name.isEmpty() ? getId() : name) + (name_suffix.isEmpty() ? StdString("") : name_suffix.getValue()); 55 55 } 56 56 … … 216 216 if (!split_freq.isEmpty()) 217 217 { 218 if (context->registryIn->foundKey("splitStart") && context->registryIn->foundKey("splitEnd")) 218 StdString keySuffix("CContext_"+CContext::getCurrent()->getId()+"::CFile_"+getFileOutputName()+"::") ; 219 if (context->registryIn->foundKey(keySuffix+"splitStart") && context->registryIn->foundKey(keySuffix+"splitEnd")) 219 220 { 220 221 CDate savedSplitStart(*context->getCalendar()), savedSplitEnd(*context->getCalendar()); … … 348 349 { 349 350 StdString filename = getFileOutputName(); 350 if (!name_suffix.isEmpty()) filename+=name_suffix.getValue();351 351 352 352 // determine splitting format in the file name : firstPart%start_date%middlePart%end_date%lastPart … … 415 415 oss << lastPart ; 416 416 417 context->registryOut->setKey("splitStart", lastSplit); 418 context->registryOut->setKey("splitEnd", splitEnd); 417 StdString keySuffix("CContext_"+CContext::getCurrent()->getId()+"::CFile_"+getFileOutputName()+"::") ; 418 context->registryOut->setKey(keySuffix+"splitStart", lastSplit); 419 context->registryOut->setKey(keySuffix+"splitEnd", splitEnd); 419 420 } 420 421 else oss<<firstPart<<lastPart ; … … 508 509 StdOStringStream oss; 509 510 oss << filename; 510 if (!name_suffix.isEmpty()) oss << name_suffix.getValue();511 511 512 512 if (!split_freq.isEmpty()) -
XIOS/trunk/src/node/file.hpp
r957 r1090 69 69 public: 70 70 /// Accesseurs /// 71 const StdString &getFileOutputName(void) const;71 const StdString getFileOutputName(void) const; 72 72 boost::shared_ptr<CDataOutput> getDataOutput(void) const; 73 73 boost::shared_ptr<CDataInput> getDataInput(void) const;
Note: See TracChangeset
for help on using the changeset viewer.