BOSS
7.0.1
BESIII Offline Software System
Loading...
Searching...
No Matches
Calibration/facilities/facilities-00-00-04/facilities/Converter.h
Go to the documentation of this file.
1
// $Id: Converter.h,v 1.1.1.1 2005/10/17 06:11:40 maqm Exp $
2
//
3
// Original author: Sawyer Gillespie
4
//
[email protected]
5
//
6
7
#ifndef _H_Converter_facilities_
8
#define _H_Converter_facilities_
9
10
// class Converter
11
// Template class to define the converter behavior. This is really just
12
// specifying a pattern.
13
//
14
template
<
class
Ty1,
class
Ty2>
15
class
Converter
{
16
public
:
17
// type declarations
18
typedef
Ty1
source
;
19
typedef
Ty2
destination
;
20
21
// declare the forward method
22
inline
destination
*
operator
(
const
source
&)
const
;
23
24
protected
:
25
// do the actual conversion here
26
virtual
destination
*
convert
(
const
source
&)
const
= 0;
27
};
28
29
// inline declarations
30
31
template
<
class
Ty1,
class
Ty2>
32
inline
Converter<Ty1,Ty2>::destination
*
33
Converter<Ty1,Ty2>::operator ()
(
const
Converter<Ty1,Ty2>::source
&
s
)
const
34
{
35
return
convert (
s
);
36
}
37
38
#endif
// _H_Converter_facilities_
s
XmlRpcServer s
Definition:
HelloServer.cpp:11
Converter
Definition:
Calibration/facilities/facilities-00-00-04/facilities/Converter.h:15
Converter::convert
virtual destination * convert(const source &) const =0
Converter::source
Ty1 source
Definition:
Calibration/facilities/facilities-00-00-04/facilities/Converter.h:18
Converter::operator
destination * operator(const source &) const
Converter::destination
Ty2 destination
Definition:
Calibration/facilities/facilities-00-00-04/facilities/Converter.h:19
source
Calibration
facilities
facilities-00-00-04
facilities
Converter.h
Generated by
1.9.6