KiCad PCB EDA Suite
Loading...
Searching...
No Matches
ODB_FILE_WRITER Class Reference

#include <odb_util.h>

Public Member Functions

 ODB_FILE_WRITER (ODB_TREE_WRITER &aTreeWriter, const wxString &aFileName)
 
virtual ~ODB_FILE_WRITER ()
 
 ODB_FILE_WRITER (ODB_FILE_WRITER &&)=delete
 
ODB_FILE_WRITERoperator= (ODB_FILE_WRITER &&)=delete
 
 ODB_FILE_WRITER (ODB_FILE_WRITER const &)=delete
 
ODB_FILE_WRITERoperator= (ODB_FILE_WRITER const &)=delete
 
void CreateFile (const wxString &aFileName)
 
bool CloseFile ()
 
std::ostream & GetStream ()
 

Private Attributes

ODB_TREE_WRITERm_treeWriter
 
std::ofstream m_ostream
 

Detailed Description

Definition at line 217 of file odb_util.h.

Constructor & Destructor Documentation

◆ ODB_FILE_WRITER() [1/3]

ODB_FILE_WRITER::ODB_FILE_WRITER ( ODB_TREE_WRITER & aTreeWriter,
const wxString & aFileName )

Definition at line 228 of file odb_util.cpp.

References CreateFile(), and m_treeWriter.

Referenced by ODB_FILE_WRITER(), ODB_FILE_WRITER(), operator=(), and operator=().

◆ ~ODB_FILE_WRITER()

virtual ODB_FILE_WRITER::~ODB_FILE_WRITER ( )
inlinevirtual

Definition at line 222 of file odb_util.h.

References CloseFile().

◆ ODB_FILE_WRITER() [2/3]

ODB_FILE_WRITER::ODB_FILE_WRITER ( ODB_FILE_WRITER && )
delete

References ODB_FILE_WRITER().

◆ ODB_FILE_WRITER() [3/3]

ODB_FILE_WRITER::ODB_FILE_WRITER ( ODB_FILE_WRITER const & )
delete

References ODB_FILE_WRITER().

Member Function Documentation

◆ CloseFile()

bool ODB_FILE_WRITER::CloseFile ( )

Definition at line 268 of file odb_util.cpp.

References m_ostream.

Referenced by ~ODB_FILE_WRITER().

◆ CreateFile()

void ODB_FILE_WRITER::CreateFile ( const wxString & aFileName)

Definition at line 235 of file odb_util.cpp.

References m_ostream, m_treeWriter, and TO_UTF8.

Referenced by ODB_FILE_WRITER().

◆ GetStream()

std::ostream & ODB_FILE_WRITER::GetStream ( )
inline

Definition at line 232 of file odb_util.h.

References m_ostream.

Referenced by ODB_FONTS_ENTITY::GenerateFiles().

◆ operator=() [1/2]

ODB_FILE_WRITER & ODB_FILE_WRITER::operator= ( ODB_FILE_WRITER && )
delete

References ODB_FILE_WRITER().

◆ operator=() [2/2]

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

References ODB_FILE_WRITER().

Member Data Documentation

◆ m_ostream

std::ofstream ODB_FILE_WRITER::m_ostream
private

Definition at line 236 of file odb_util.h.

Referenced by CloseFile(), CreateFile(), and GetStream().

◆ m_treeWriter

ODB_TREE_WRITER& ODB_FILE_WRITER::m_treeWriter
private

Definition at line 235 of file odb_util.h.

Referenced by CreateFile(), and ODB_FILE_WRITER().


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