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

#define CLOSE_STREAM (   var)    var.close()
#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 99 of file streamwrapper.h.

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

Definition at line 95 of file streamwrapper.h.

Referenced by S3D::ReadCache().

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

Definition at line 91 of file streamwrapper.h.

Referenced by PCB_EDIT_FRAME::ExportVRML_File(), S3D::WriteCache(), and S3D::WriteVRML().

#define OSTREAM   std::ofstream

Definition at line 89 of file streamwrapper.h.