KiCad PCB EDA Suite
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)   var.close()
 

Macro Definition Documentation

◆ CLOSE_STREAM

#define CLOSE_STREAM (   var)    var.close()

Definition at line 113 of file streamwrapper.h.

◆ 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: DXF_plotter.cpp:61

Definition at line 109 of file streamwrapper.h.

◆ OPEN_ISTREAM

#define OPEN_ISTREAM (   var,
  name 
)
Value:
std::ifstream var; \
var.open( name, std::ios_base::in )
const char * name
Definition: DXF_plotter.cpp:61

Definition at line 105 of file streamwrapper.h.

◆ OPEN_OSTREAM

#define OPEN_OSTREAM (   var,
  name 
)
Value:
std::ofstream var; \
var.open( name, std::ios_base::out | std::ios_base::trunc )
const char * name
Definition: DXF_plotter.cpp:61

Definition at line 101 of file streamwrapper.h.

◆ OSTREAM

#define OSTREAM   std::ofstream

Definition at line 99 of file streamwrapper.h.