Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Friends
Macros
Pages
MamaTimeZone.h
Go to the documentation of this file.
1
/* $Id$
2
*
3
* OpenMAMA: The open middleware agnostic messaging API
4
* Copyright (C) 2011 NYSE Technologies, Inc.
5
*
6
* This library is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU Lesser General Public
8
* License as published by the Free Software Foundation; either
9
* version 2.1 of the License, or (at your option) any later version.
10
*
11
* This library is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* Lesser General Public License for more details.
15
*
16
* You should have received a copy of the GNU Lesser General Public
17
* License along with this library; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19
* 02110-1301 USA
20
*/
21
22
#ifndef MamaTimeZoneHpp__
23
#define MamaTimeZoneHpp__
24
25
#include <mama/timezone.h>
26
27
28
namespace
Wombat
29
{
30
50
class
MAMACPPExpDLL
MamaTimeZone
51
{
52
public
:
55
static
const
MamaTimeZone
& local ();
56
58
static
const
MamaTimeZone
& utc ();
59
62
static
const
MamaTimeZone
& usEastern ();
63
65
MamaTimeZone
();
66
68
MamaTimeZone
(
const
char
* tz);
69
71
MamaTimeZone
(
const
MamaTimeZone
& copy);
72
74
~
MamaTimeZone
();
75
77
MamaTimeZone
& operator= (
const
MamaTimeZone
& rhs);
78
80
void
set
(
const
char
* tz);
81
83
void
clear ();
84
86
const
char
* tz ()
const
;
87
90
mama_i32_t offset ()
const
;
91
94
void
check();
95
96
mamaTimeZone
getCValue
() {
return
myCimpl; }
97
const
mamaTimeZone
getCValue
()
const
{
return
myCimpl; }
98
103
static
void
setScanningInterval (mama_f64_t seconds);
104
105
private
:
106
mamaTimeZone myCimpl;
107
109
MamaTimeZone
(mamaTimeZone cimpl);
110
};
// MamaTimeZone
111
112
}
// namespace Wombat
113
114
#endif // MamaTimeZoneHpp__
© 2012 Linux Foundation