Bike-X
0.8
Main Page
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Active.cpp
Go to the documentation of this file.
1
#include <stdio.h>
2
#include <iostream>
3
#include <fstream>
4
#include <
Active.h
>
5
6
int
Active::flush
()
7
{
8
static
std::ofstream file;
9
file.open(
ACTIVE_FILENAME
);
10
// Somehow write current data in buffer to a device
11
// TODO: call python application
12
for
(
int
i = 0; i <
BUFFER_SIZE
; i++)
13
file <<
buffer
[i];
14
file.close();
15
return
0;
16
}
Active::flush
static int flush()
Definition:
Active.cpp:6
Device::buffer
static unsigned char buffer[BUFFER_SIZE]
Definition:
Device.h:29
ACTIVE_FILENAME
#define ACTIVE_FILENAME
Definition:
Active.h:6
BUFFER_SIZE
#define BUFFER_SIZE
Definition:
Device.h:6
Active.h
device
Active.cpp
Generated on Wed Oct 1 2014 00:45:20 for Bike-X by
1.8.6