KiCad PCB EDA Suite
Loading...
Searching...
No Matches
streamwrapper.h File Reference
#include <iostream>

Go to the source code of this file.

Macros

#define OSTREAM   std::ofstream
 
#define OPEN_OSTREAM(var, name)
 
#define OPEN_ISTREAM(var, name)
 
#define OPEN_IOSTREAM(var, name)
 
#define CLOSE_STREAM(var)
 

Macro Definition Documentation

◆ CLOSE_STREAM

#define CLOSE_STREAM ( var)

◆ OPEN_IOSTREAM

#define OPEN_IOSTREAM ( var,
name )
Value:
std::fstream var; \
var.open( name, std::ios_base::out | std::ios_base::in )
const char * name

Definition at line 111 of file streamwrapper.h.

◆ OPEN_ISTREAM

#define OPEN_ISTREAM ( var,
name )
Value:
std::ifstream var; \
var.open( name, std::ios_base::in )

Definition at line 107 of file streamwrapper.h.

Referenced by fileType(), and S3D::ReadCache().

◆ OPEN_OSTREAM

#define OPEN_OSTREAM ( var,
name )
Value:
std::ofstream var; \
var.open( name, std::ios_base::out | std::ios_base::trunc )

Definition at line 103 of file streamwrapper.h.

Referenced by EXPORTER_PCB_VRML::ExportFp3DModelsAsLinkedFile(), S3D::WriteCache(), and S3D::WriteVRML().

◆ OSTREAM

#define OSTREAM   std::ofstream

Definition at line 101 of file streamwrapper.h.

Referenced by EXPORTER_PCB_VRML::writeLayers().