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

#include <odb_util.h>

Classes

class  ARRAY_PROXY
 

Public Member Functions

 ODB_TEXT_WRITER (std::ostream &aStream)
 
virtual ~ODB_TEXT_WRITER ()
 
void WriteEquationLine (const std::string &var, int value)
 
void WriteEquationLine (const wxString &var, const wxString &value)
 
template<typename T >
void write_line_enum (const std::string &var, const T &value)
 
ARRAY_PROXY MakeArrayProxy (const std::string &aStr)
 

Private Member Functions

void WriteIndent ()
 
void BeginArray (const std::string &a)
 
void EndArray ()
 

Private Attributes

std::ostream & m_ostream
 
bool in_array = false
 

Detailed Description

Definition at line 263 of file odb_util.h.

Constructor & Destructor Documentation

◆ ODB_TEXT_WRITER()

ODB_TEXT_WRITER::ODB_TEXT_WRITER ( std::ostream &  aStream)
inline

Definition at line 266 of file odb_util.h.

◆ ~ODB_TEXT_WRITER()

virtual ODB_TEXT_WRITER::~ODB_TEXT_WRITER ( )
inlinevirtual

Definition at line 267 of file odb_util.h.

Member Function Documentation

◆ BeginArray()

void ODB_TEXT_WRITER::BeginArray ( const std::string &  a)
private

Definition at line 297 of file odb_util.cpp.

References in_array, and m_ostream.

Referenced by ODB_TEXT_WRITER::ARRAY_PROXY::ARRAY_PROXY().

◆ EndArray()

void ODB_TEXT_WRITER::EndArray ( )
private

Definition at line 306 of file odb_util.cpp.

References in_array, and m_ostream.

◆ MakeArrayProxy()

ARRAY_PROXY ODB_TEXT_WRITER::MakeArrayProxy ( const std::string &  aStr)
inline

Definition at line 299 of file odb_util.h.

Referenced by ODB_DRILL_TOOLS::GenerateFile(), and ODB_MATRIX_ENTITY::GenerateFiles().

◆ write_line_enum()

template<typename T >
void ODB_TEXT_WRITER::write_line_enum ( const std::string &  var,
const T &  value 
)
inline

Definition at line 273 of file odb_util.h.

References ODB::Enum2String(), and WriteEquationLine().

Referenced by ODB_MATRIX_ENTITY::GenerateFiles().

◆ WriteEquationLine() [1/2]

void ODB_TEXT_WRITER::WriteEquationLine ( const std::string &  var,
int  value 
)

◆ WriteEquationLine() [2/2]

void ODB_TEXT_WRITER::WriteEquationLine ( const wxString &  var,
const wxString &  value 
)

Definition at line 283 of file odb_util.cpp.

References m_ostream, and WriteIndent().

◆ WriteIndent()

void ODB_TEXT_WRITER::WriteIndent ( )
private

Definition at line 290 of file odb_util.cpp.

References in_array, and m_ostream.

Referenced by WriteEquationLine().

Member Data Documentation

◆ in_array

bool ODB_TEXT_WRITER::in_array = false
private

Definition at line 312 of file odb_util.h.

Referenced by BeginArray(), EndArray(), and WriteIndent().

◆ m_ostream

std::ostream& ODB_TEXT_WRITER::m_ostream
private

Definition at line 311 of file odb_util.h.

Referenced by BeginArray(), EndArray(), WriteEquationLine(), and WriteIndent().


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