forked from salamb/STPNC-MTConnect-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MtConnector.h
34 lines (28 loc) · 874 Bytes
/
MtConnector.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
#pragma once
using namespace System;
using namespace System::Net;
using namespace System::Xml;
using namespace System::Collections::Generic;
using namespace System::IO;
using namespace System::Text;
ref class MtConnector
{
private:
String^ server;
String^query1;
String^query2;
Boolean startedPush;
XmlDocument ^doc ;
WebClient ^wc;
int getMessageSize(String^bound,StreamReader^ reader);
array<wchar_t>^ getMessage(int size,StreamReader ^ reader);
void printXMLData(array<wchar_t>^ buff,DateTime ^%,bool firstTime,StreamWriter^ writer);
public:
MtConnector();
array<double>^ getPos();
void printData();
Boolean startPush(String ^ str);
void getRequest(String^ str,String^ dataLocation);
void EventHandler(Object^ sender, OpenReadCompletedEventArgs^ e);
};
//delegate void OpenReadCompletedEventHandler (Object^ sender, OpenReadCompletedEventArgs^ e);