Bike-X  0.8
 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 
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 }
static int flush()
Definition: Active.cpp:6
static unsigned char buffer[BUFFER_SIZE]
Definition: Device.h:29
#define ACTIVE_FILENAME
Definition: Active.h:6
#define BUFFER_SIZE
Definition: Device.h:6