File: ServiceNET.i

package info (click to toggle)
robotraconteur 1.2.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 101,380 kB
  • sloc: cpp: 1,149,268; cs: 87,653; java: 58,127; python: 26,897; ansic: 356; sh: 152; makefile: 90; xml: 51
file content (50 lines) | stat: -rw-r--r-- 1,441 bytes parent folder | download
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
49
50
%typemap(cscode) RobotRaconteur::ServerContext
%{
public static string CurrentServicePath { get { return GetCurrentServicePath(); } }
public static ServerContext CurrentServerContext { get { return GetCurrentServerContext(); } }

public delegate void ServerServiceListenerDelegate(ServerContext service, ServerServiceListenerEventType ev, object parameter);
public void SetServiceAttributes(System.Collections.Generic.Dictionary<string, object> attributes)
{
  MessageElement m = new MessageElement("value",RobotRaconteurNode.s.PackVarType(attributes));
  _SetServiceAttributes(m);

}

public void AddServerServiceListener(ServerServiceListenerDelegate listener)
{
  ServerServiceListenerDirectorNET d = new ServerServiceListenerDirectorNET(this, listener);
  d.objectheapid = RRObjectHeap.AddObject(d);

  _AddServerServiceListener(d);
}

public void ReleaseServicePath(string path)
{
	_ReleaseServicePath(path);
}

public void ReleaseServicePath(string path, uint[] endpoints)
{
	vectoruint32 o=new vectoruint32();
	foreach(uint e in endpoints)
	{
		o.Add(e);
	}

	_ReleaseServicePath(path,o);
}

%}

%typemap(csclassmodifiers) RobotRaconteur::AuthenticatedUser "public partial class";

%typemap(cscode) RobotRaconteur::ServerEndpoint
%{
public static uint CurrentEndpoint { get { return GetCurrentEndpoint(); } }

%}

%typemap(csclassmodifiers) RobotRaconteur::WrappedServiceSkelAsyncAdapter "public partial class";

%include "Service.i"