-
Notifications
You must be signed in to change notification settings - Fork 2
/
Epos3ReadWriteLib.h
executable file
·48 lines (39 loc) · 1.18 KB
/
Epos3ReadWriteLib.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#include <getopt.h>
#include <libgen.h> // basename()
#include <stdlib.h>
#include <stdio.h>
#include <iostream>
#include <iomanip>
#include "CommandDownload.h"
#include "CommandUpload.h"
#include "MasterDevice.h"
#include <unistd.h>
#include <string>
using namespace std;
/*****************************************************************************/
class Epos3ReadWriteLib {
public:
typedef list<Command *> CommandList;
CommandList commandList;
string binaryBaseName;
string commandName;
Command::StringVector commandArgs;
Command::StringVector dataBuffer;
// option variables
string masters = "-"; // all masters
string positions = "-"; // all positions
string aliases = "-"; // all aliases
string domains = "-"; // all domains
string dataTypeStr;
Command::Verbosity verbosity = Command::Normal;
bool force = true;
bool helpRequested = false;
string outputFile;
string skin;
void initEPOS3();
int sendUploadCommand(string, string, string, string);
int sendUploadCommandBuffer(string, string, string, string);
int sendDownloadCommand(string, string, string, string, string);
void moveMotor(string, string, string );
};
/*****************************************************************************/