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)   var.close()
 

Macro Definition Documentation

◆ CLOSE_STREAM

#define CLOSE_STREAM (   var)    var.close()

Definition at line 115 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:57

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.

◆ 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.

◆ OSTREAM

#define OSTREAM   std::ofstream

Definition at line 101 of file streamwrapper.h.