MCPcopy Create free account
hub / github.com/MaxBelkov/visualsyslog / RotationLogGetItem

Method RotationLogGetItem

source/fdb.cpp:369–388  ·  view source on GitHub ↗

---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

367}
368//---------------------------------------------------------------------------
369String TStorageFile::RotationLogGetItem(int num)
370{
371 // 0 - current file
372 if( num==0 )
373 return GetFileName();
374
375 String rv;
376 TStringList * p = NULL;
377 try
378 {
379 p = new TStringList;
380 p->LoadFromFile( RotationLogFormatFileName() );
381 if( num > 0 && num <= p->Count )
382 rv = p->Strings[num-1];
383 }
384 catch(...)
385 {}
386 delete p;
387 return rv;
388}
389//---------------------------------------------------------------------------
390//---------------------------------------------------------------------------
391//---------------------------------------------------------------------------

Callers 2

aRotatePrevExecuteMethod · 0.80
aRotateNextExecuteMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected