AnyConnect Secure Mobility Client
4.10.08029
RouteInfo.h
1
#ifndef _ROUTE_INFO_
2
#define _ROUTE_INFO_
3
4
5
#include "
api.h
"
6
#include <iostream>
7
8
/**
9
* The RouteInfo class can be used to retrieve the network and subnet mask
10
* for the secure and non-secure routes associated with the VPN.
11
*/
12
13
14
class
VPN_VPNAPI
RouteInfo
15
{
16
public
:
17
18
/**
19
* Constructor used to create a route instance. This method is not
20
* intended for public use.
21
*/
22
RouteInfo
(
tstring
&network,
tstring
&subnet);
23
24
RouteInfo
(
tstring
&network,
tstring
&subnet,
tstring
&hostNames);
25
26
/**
27
* Constructor used to copy a route instance. This method is not
28
* intended for public use.
29
*/
30
RouteInfo
(
const
RouteInfo
*routeInfo);
31
32
~
RouteInfo
();
33
34
/**
35
* Retrieve the destination network address for this route.
36
*/
37
const
tstring
&
getNetwork
()
const
;
38
39
/**
40
* Retrieve the subnet mask for this route.
41
*/
42
const
tstring
&
getSubnet
()
const
;
43
44
/**
45
* Retrieves the host names for this route (only applicable to dynamic routes).
46
*/
47
const
tstring
&
getHostNames
()
const
;
48
49
static
size_t
HashCombine(
const
std::list<RouteInfo*>& routeList);
50
51
private
:
52
53
tstring
ms_network;
54
tstring
ms_subnet;
55
tstring
ms_hostNames;
56
57
size_t
getHashCode()
const
;
58
59
};
60
61
tostream& operator <<(tostream &outStream,
RouteInfo
&route);
62
63
#endif // _ROUTE_INFO_
RouteInfo
Definition:
RouteInfo.h:15
RouteInfo::getHostNames
const tstring & getHostNames() const
RouteInfo::RouteInfo
RouteInfo(tstring &network, tstring &subnet)
tstring
#define tstring
Definition:
api.h:35
RouteInfo::getNetwork
const tstring & getNetwork() const
RouteInfo::getSubnet
const tstring & getSubnet() const
RouteInfo::RouteInfo
RouteInfo(const RouteInfo *routeInfo)
api.h
AnyConnect C++ API Documentation by
Cisco Systems