trick/trick_models/test/varserv/include/VS.hh
Alex Lin 14a75508a3 Cleaning up once include variables and copyright cleanup.
Changed all header file once include variables to follow the same naming
convention and not start with any underscores.  Also deleted old
incorrect copyright notices.  Also removed $Id: tags from all files.

Fixes #14.  Fixes #22.
2015-03-23 16:03:14 -05:00

64 lines
1.3 KiB
C++

/********************************* TRICK HEADER *******************************
PURPOSE: ( Variable server test )
REFERENCES: ( None )
ASSUMPTIONS AND LIMITATIONS: ( None )
PROGRAMMERS: ( (Lindsay Landry) (L3) (9-12-2013) )
********************************************************************************/
#include <wchar.h>
#include <string.h>
#include "trick_utils/comm/include/tc.h"
#include "trick_utils/comm/include/tc_proto.h"
#ifndef VS_HH
#define VS_HH
class VSTest {
public:
unsigned short port_num;
const char * hostest;
char got_read[80];
double cycle_rate;
TCDevice bob;
char a;
unsigned char b;
short c;
unsigned short d;
int e; /* M xy-position */
unsigned int f;
long g;
unsigned long h;
float i;
double j;
long long k;
unsigned long long l;
bool m;
VSTest();
~VSTest();
int init();
int default_vars();
int vs_write(char* cmd_buffer);
int vs_read();
void printLine();
int shutdown();
// TEST FUNCTIONS
int testAddRemove();
int testExists();
int testPause();
int testOther();
int testCycle();
private:
int get_line(char* thing);
int strcmp_IgnoringWhiteSpace(const char* s1, const char* s2);
};
#endif