A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/logrotate_8cpp_source.html below:

NCBI C++ ToolKit: src/util/logrotate.cpp Source File

48  virtual int sync

(

void

);

60  const string

& filename,

62

IOS_BASE::openmode

mode

)

80  if

( !new_name.empty() ) {

99

new_size += pptr() - pbase();

105  if

(

m_Size

- old_size < 0) {

112

new_size -= pptr() - pbase();

128

new_size += pptr() - pbase();

129  int result

= CNcbiFilebuf::sync();

130  if

(

m_Size

- old_size < 0) {

134

new_size -= pptr() - pbase();

166 #if defined(NCBI_OS_UNIX) && !defined(NCBI_OS_CYGWIN)

CRotatingLogStreamBuf(CRotatingLogStream *stream, const string &filename, CNcbiStreamoff limit, IOS_BASE::openmode mode)

CNcbiStreamoff Rotate(void)

IOS_BASE::openmode m_Mode

virtual CT_INT_TYPE overflow(CT_INT_TYPE c=CT_EOF)

CRotatingLogStream * m_Stream

A file stream variant that automatically rotates its output when it grows beyond a specified size.

std::ofstream out("events_result.xml")

main entry point for tests

bool Rename(const string &new_path, TRenameFlags flags=fRF_Default)

Rename entry.

virtual bool Remove(TRemoveFlags flags=eRecursive) const

Remove a directory entry.

CRotatingLogStream(const string &filename, CNcbiStreamoff limit, openmode mode=app|ate|out)

Constructor.

CNcbiStreamoff Rotate(void)

Actually rotate the log.

virtual string x_BackupName(string &name)

Overridable implementation of naming policy.

virtual ~CRotatingLogStream(void)

Destructor.

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

IO_PREFIX::ostream CNcbiOstream

Portable alias for ostream.

IO_PREFIX::streamoff CNcbiStreamoff

Portable alias for streamoff.

IO_PREFIX::streampos CNcbiStreampos

Portable alias for streampos.

IO_PREFIX::filebuf CNcbiFilebuf

Portable alias for filebuf.

string AsString(const CTimeFormat &format=kEmptyStr, TSeconds out_tz=eCurrentTimeZone) const

Transform time to string.

CTime CurrentTime(CTime::ETimeZone tz=CTime::eLocal, CTime::ETimeZonePrecision tzp=CTime::eTZPrecisionDefault)

This module supplies a file stream variant that supports customizable log rotation.

Defines classes: CDirEntry, CFile, CDir, CSymLink, CMemoryFile, CFileUtil, CFileLock,...


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4