ffead.server.doc
Main Page
Classes
Files
File List
Service.h
1
/*
2
Copyright 2009-2012, Sumeet Chhetri
3
4
Licensed under the Apache License, Version 2.0 (the "License");
5
you may not use this file except in compliance with the License.
6
You may obtain a copy of the License at
7
8
http://www.apache.org/licenses/LICENSE-2.0
9
10
Unless required by applicable law or agreed to in writing, software
11
distributed under the License is distributed on an "AS IS" BASIS,
12
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
See the License for the specific language governing permissions and
14
limitations under the License.
15
*/
16
/*
17
* Service.h
18
*
19
* Created on: Jan 29, 2010
20
* Author: sumeet
21
*/
22
23
#ifndef SERVICE_H_
24
#define SERVICE_H_
25
#include "string"
26
#include "vector"
27
using namespace
std;
28
class
Service
{
29
private
:
30
string
name;
31
string
address;
32
vector<string> accessList;
33
string
type;
34
public
:
35
Service
();
36
virtual
~
Service
();
37
};
38
39
#endif
/* SERVICE_H_ */
40
/*
41
<service>
42
<name>ExampleHTTPService</name>
43
<address>http://example.com:5098/service</address>
44
<accessList>
45
<mem>user1</mem>
46
<mem>user2</mem>
47
<mem>user3</mem>
48
</accessList>
49
</service>
50
<service>
51
<name>ExampleTCPService</name>
52
<address>tcp://example.com:5098/service</address>
53
<accessList>
54
<mem>user1</mem>
55
<mem>user2</mem>
56
<mem>user3</mem>
57
</accessList>
58
</service>
59
<service>
60
<name>ExampleUDPService</name>
61
<address>udp://example.com:5098/service</address>
62
<accessList>
63
<mem>user1</mem>
64
<mem>user2</mem>
65
<mem>user3</mem>
66
</accessList>
67
</service>
68
*/
include
Service.h
Generated on Sun Mar 10 2013 11:01:56 for ffead.server.doc by
1.8.3.1