Navigation

Main Page
Download
Support
Installation
Tutorial
Examples
Reference Manual
   Version 1.0.6dev
      Class Index
      File List
   Version 1.0.6
   Version 1.0.5new_solver
   Version 1.0.5dev
   Version 1.0.5b
   Version 1.0.4dev
   Version 1.0.4
Publications


Hosted by Get Ion Beam Simulator at SourceForge.net. Fast, secure and Free Open Source software downloads
file.hpp File Reference

Bindary file writing and reading tools. More...

#include <iostream>
#include <stdint.h>

Go to the source code of this file.

Macros

#define FILEID_NULL   0
 
#define FILEID_GEOMETRY   1001
 
#define FILEID_FUNCSOLID   2001
 
#define FILEID_CSGSOLID   2002
 
#define FILEID_DXFSOLID   2003
 
#define FILEID_STLSOLID   2004
 
#define FILEID_PARTICLEDB2D   3001
 
#define FILEID_PARTICLEDBCYL   3002
 
#define FILEID_PARTICLEDB3D   3003
 
#define FILEID_SCALARFIELD   4001
 
#define FILEID_VECTORFIELD   5001
 

Functions

void write_int8 (std::ostream &os, int8_t value)
 Write int8_t value into stream os. More...
 
void write_int16 (std::ostream &os, int16_t value)
 Write int16_t value into stream os. More...
 
void write_int32 (std::ostream &os, int32_t value)
 Write int32_t value into stream os. More...
 
void write_uint32 (std::ostream &os, uint32_t value)
 Write uint32_t value into stream os. More...
 
void write_double (std::ostream &os, double value)
 Write double value into stream os. More...
 
void write_compressed_block (std::ostream &os, uint32_t len, const int8_t *data)
 Write data block data of length len bytes into stream os in compressed form. More...
 
int8_t read_int8 (std::istream &is)
 Read int8_t from stream is. More...
 
int16_t read_int16 (std::istream &is)
 Read int16_t from stream is. More...
 
int32_t read_int32 (std::istream &is)
 Read int32_t from stream is. More...
 
uint32_t read_uint32 (std::istream &is)
 Read uint32_t from stream is. More...
 
double read_double (std::istream &is)
 Readd double from stream is. More...
 
uint32_t read_compressed_block (std::istream &is, uint32_t len, int8_t *dest)
 Read compressed data block of length len bytes from stream is. More...
 

Detailed Description

Bindary file writing and reading tools.

Function Documentation

◆ read_compressed_block()

uint32_t read_compressed_block ( std::istream &  is,
uint32_t  len,
int8_t *  dest 
)

Read compressed data block of length len bytes from stream is.

◆ read_double()

double read_double ( std::istream &  is)

Readd double from stream is.

◆ read_int16()

int16_t read_int16 ( std::istream &  is)

Read int16_t from stream is.

◆ read_int32()

int32_t read_int32 ( std::istream &  is)

Read int32_t from stream is.

◆ read_int8()

int8_t read_int8 ( std::istream &  is)

Read int8_t from stream is.

◆ read_uint32()

uint32_t read_uint32 ( std::istream &  is)

Read uint32_t from stream is.

◆ write_compressed_block()

void write_compressed_block ( std::ostream &  os,
uint32_t  len,
const int8_t *  data 
)

Write data block data of length len bytes into stream os in compressed form.

◆ write_double()

void write_double ( std::ostream &  os,
double  value 
)

Write double value into stream os.

◆ write_int16()

void write_int16 ( std::ostream &  os,
int16_t  value 
)

Write int16_t value into stream os.

◆ write_int32()

void write_int32 ( std::ostream &  os,
int32_t  value 
)

Write int32_t value into stream os.

◆ write_int8()

void write_int8 ( std::ostream &  os,
int8_t  value 
)

Write int8_t value into stream os.

◆ write_uint32()

void write_uint32 ( std::ostream &  os,
uint32_t  value 
)

Write uint32_t value into stream os.


Reference manual for Ion Beam Simulator 1.0.6dev
Generated by Doxygen 1.9.1 on Thu Sep 11 2025 09:37:24.