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 206 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 219 of file odb_util.cpp.

References CreateFile().

◆ ~ODB_FILE_WRITER()

virtual ODB_FILE_WRITER::~ODB_FILE_WRITER ( )
inlinevirtual

Definition at line 211 of file odb_util.h.

References CloseFile().

◆ ODB_FILE_WRITER() [2/3]

ODB_FILE_WRITER::ODB_FILE_WRITER ( ODB_FILE_WRITER &&  )
delete

◆ ODB_FILE_WRITER() [3/3]

ODB_FILE_WRITER::ODB_FILE_WRITER ( ODB_FILE_WRITER const &  )
delete

Member Function Documentation

◆ CloseFile()

bool ODB_FILE_WRITER::CloseFile ( )

Definition at line 259 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 226 of file odb_util.cpp.

References ODB_TREE_WRITER::GetCurrentPath(), m_ostream, m_treeWriter, and TO_UTF8.

Referenced by ODB_FILE_WRITER().

◆ GetStream()

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

Definition at line 221 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

◆ operator=() [2/2]

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

Member Data Documentation

◆ m_ostream

std::ofstream ODB_FILE_WRITER::m_ostream
private

Definition at line 225 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 224 of file odb_util.h.

Referenced by CreateFile().


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