#include <unistd.h>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <cstdio>
#include <sys/io.h>
#include <fcntl.h>
#include <sys/stat.h>
#include "wmp_config.h"
#include "core/include/frames.h"
#include "basic_io.h"
#include <vector>
#include <map>
#include <iostream>
#include <errno.h>
Go to the source code of this file.
Classes | |
struct | file_hdr_t |
Functions | |
int | io_change_file (char *filename) |
int | io_change_file () |
int | io_close_sim_data () |
int | io_close_tmp_file () |
int | io_create_tmp_file () |
void | io_flush () |
int | io_get_file_size () |
int | io_get_filepos () |
int | io_get_num_of_nodes () |
int | io_get_pose_from_serial (int serial) |
int | io_get_sim_data_num_of_elements () |
int | io_go_to (int n) |
void | io_init () |
int | io_open_sim_data (char *filename) |
int | io_read_next_sim_data (char *p) |
int | io_read_sim_data (char *p, int pos) |
int | io_reopen_file_to_write (int _num_nodes) |
int | io_write_on_tmp_file (char *fdata, int data_size) |
int | io_write_sim_frame (char *fdata, int data_size) |
Variables | |
std::vector< int > | f_offset |
file_t | file |
static file_hdr_t | file_hdr |
static int | num_nodes |
std::map< int, int > | serialToOffset |
file_t | tmp_file |
int io_change_file | ( | char * | filename | ) |
Definition at line 76 of file basic_io.cc.
int io_change_file | ( | ) |
Definition at line 81 of file basic_io.cc.
int io_close_sim_data | ( | ) |
Definition at line 132 of file basic_io.cc.
int io_close_tmp_file | ( | ) |
Definition at line 254 of file basic_io.cc.
int io_create_tmp_file | ( | ) |
Definition at line 242 of file basic_io.cc.
void io_flush | ( | ) |
Definition at line 69 of file basic_io.cc.
int io_get_file_size | ( | ) |
Definition at line 152 of file basic_io.cc.
int io_get_filepos | ( | ) |
Definition at line 226 of file basic_io.cc.
int io_get_num_of_nodes | ( | ) |
Definition at line 148 of file basic_io.cc.
int io_get_pose_from_serial | ( | int | serial | ) |
Definition at line 144 of file basic_io.cc.
int io_get_sim_data_num_of_elements | ( | ) |
Definition at line 207 of file basic_io.cc.
int io_go_to | ( | int | n | ) |
Definition at line 158 of file basic_io.cc.
void io_init | ( | ) |
Definition at line 65 of file basic_io.cc.
int io_open_sim_data | ( | char * | filename | ) |
Definition at line 86 of file basic_io.cc.
int io_read_next_sim_data | ( | char * | p | ) |
Definition at line 176 of file basic_io.cc.
int io_read_sim_data | ( | char * | p, |
int | pos | ||
) |
Definition at line 196 of file basic_io.cc.
int io_reopen_file_to_write | ( | int | _num_nodes | ) |
Definition at line 211 of file basic_io.cc.
int io_write_on_tmp_file | ( | char * | fdata, |
int | data_size | ||
) |
Definition at line 235 of file basic_io.cc.
int io_write_sim_frame | ( | char * | fdata, |
int | data_size | ||
) |
Definition at line 229 of file basic_io.cc.
std::vector<int> f_offset |
Definition at line 73 of file basic_io.cc.
Definition at line 63 of file basic_io.cc.
file_hdr_t file_hdr [static] |
Definition at line 57 of file basic_io.cc.
int num_nodes [static] |
Definition at line 59 of file basic_io.cc.
std::map<int,int> serialToOffset |
Definition at line 74 of file basic_io.cc.
Definition at line 63 of file basic_io.cc.