repo.or.cz
/
ACE_TAO.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git]
/
TAO
/
tests
/
Portable_Interceptors
/
PolicyFactory
/
Policy.cpp
blob
bd8f1ee2fd152a30795c4450f2ab063e5c5402d3
1
#include
"Policy.h"
2
3
#include
"tao/SystemException.h"
4
#include
"ace/Log_Msg.h"
5
6
Policy
::
Policy
(
CORBA
::
ULong val
)
7
:
value_
(
val
)
8
{
9
}
10
11
Policy
::~
Policy
(
void
)
12
{
13
}
14
15
CORBA
::
ULong
16
Policy
::
value
(
void
)
17
{
18
return this
->
value_
;
19
}
20
21
CORBA
::
PolicyType
22
Policy
::
policy_type
(
void
)
23
{
24
return
Test
::
POLICY_TYPE
;
25
}
26
27
CORBA
::
Policy_ptr
28
Policy
::
copy
(
void
)
29
{
30
CORBA
::
Policy_ptr p
;
31
ACE_NEW_THROW_EX
(
p
,
32
Policy
(
this
->
value_
),
33
CORBA
::
NO_MEMORY
());
34
35
return
p
;
36
}
37
38
void
39
Policy
::
destroy
(
void
)
40
{
41
}