LibreOffice Module l10ntools (master) 1
Public Types | Public Member Functions | Private Attributes | List of all members
PoOfstream Class Reference

Interface to write po entry to files as output streams. More...

#include <po.hxx>

Public Types

enum  OpenMode {
  TRUNC ,
  APP
}
 

Public Member Functions

 PoOfstream ()
 
 PoOfstream (const OString &rFileName, OpenMode aMode)
 
 ~PoOfstream ()
 
 PoOfstream (const PoOfstream &)=delete
 
PoOfstreamoperator= (const PoOfstream &)=delete
 
bool isOpen () const
 
void open (const OString &rFileName, OpenMode aMode=TRUNC)
 
void close ()
 
void writeHeader (const PoHeader &rHeader)
 
void writeEntry (const PoEntry &rPo)
 

Private Attributes

std::ofstream m_aOutPut
 
bool m_bIsAfterHeader
 

Detailed Description

Interface to write po entry to files as output streams.

Definition at line 100 of file po.hxx.

Member Enumeration Documentation

◆ OpenMode

Enumerator
TRUNC 
APP 

Definition at line 109 of file po.hxx.

Constructor & Destructor Documentation

◆ PoOfstream() [1/3]

PoOfstream::PoOfstream ( )

Definition at line 479 of file po.cxx.

◆ PoOfstream() [2/3]

PoOfstream::PoOfstream ( const OString &  rFileName,
OpenMode  aMode 
)

Definition at line 484 of file po.cxx.

References open().

◆ ~PoOfstream()

PoOfstream::~PoOfstream ( )

Definition at line 490 of file po.cxx.

References close(), and isOpen().

◆ PoOfstream() [3/3]

PoOfstream::PoOfstream ( const PoOfstream )
delete

Member Function Documentation

◆ close()

void PoOfstream::close ( )

◆ isOpen()

bool PoOfstream::isOpen ( ) const
inline

◆ open()

void PoOfstream::open ( const OString &  rFileName,
OpenMode  aMode = TRUNC 
)

◆ operator=()

PoOfstream & PoOfstream::operator= ( const PoOfstream )
delete

◆ writeEntry()

void PoOfstream::writeEntry ( const PoEntry rPo)

◆ writeHeader()

void PoOfstream::writeHeader ( const PoHeader rHeader)

Member Data Documentation

◆ m_aOutPut

std::ofstream PoOfstream::m_aOutPut
private

Definition at line 104 of file po.hxx.

Referenced by close(), isOpen(), open(), writeEntry(), and writeHeader().

◆ m_bIsAfterHeader

bool PoOfstream::m_bIsAfterHeader
private

Definition at line 105 of file po.hxx.

Referenced by open(), writeEntry(), and writeHeader().


The documentation for this class was generated from the following files: