Main Page
Namespaces
Classes
Files
Examples
File List
File Members
include
xqilla
items
Timezone.hpp
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2001, 2008,
3
* DecisionSoft Limited. All rights reserved.
4
* Copyright (c) 2004, 2018 Oracle and/or its affiliates. All rights reserved.
5
*
6
*
7
* Licensed under the Apache License, Version 2.0 (the "License");
8
* you may not use this file except in compliance with the License.
9
* You may obtain a copy of the License at
10
*
11
* http://www.apache.org/licenses/LICENSE-2.0
12
*
13
* Unless required by applicable law or agreed to in writing, software
14
* distributed under the License is distributed on an "AS IS" BASIS,
15
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
* See the License for the specific language governing permissions and
17
* limitations under the License.
18
*/
19
20
#ifndef _TZONE_HPP
21
#define _TZONE_HPP
22
23
#include <xqilla/framework/XQillaExport.hpp>
24
#include <
xqilla/framework/ReferenceCounted.hpp
>
25
#include <
xqilla/items/ATDurationOrDerived.hpp
>
26
#include <xqilla/mapm/m_apm.h>
27
28
#include <xercesc/util/XercesDefs.hpp>
29
30
class
DynamicContext
;
31
32
class
XQILLA_API
Timezone
:
public
ReferenceCounted
33
{
34
public
:
35
typedef
RefCountPointer<const Timezone>
Ptr
;
36
40
Timezone
(
const
MAPM &seconds);
41
45
Timezone
(
const
ATDurationOrDerived::Ptr
&duration,
const
DynamicContext
* context);
46
50
bool
equals(
const
Timezone::Ptr
&other)
const
;
51
52
ATDurationOrDerived::Ptr
asDayTimeDuration(
const
DynamicContext
* context)
const
;
53
58
const
XMLCh* asString(
const
DynamicContext
* context)
const
;
59
63
const
MAPM &
asSeconds
()
const
{
return
seconds_; }
64
65
static
MAPM convert(
bool
positive,
int
hour,
int
minute);
66
67
static
void
validate(
const
MAPM &tz);
68
69
private
:
70
MAPM seconds_;
71
};
72
73
#endif // _TZONE_HPP
74
75
ReferenceCounted
Super class for reference counted classes.
Definition:
ReferenceCounted.hpp:30
RefCountPointer
Super class of all the reference counted wrappers for Items.
Definition:
ReferenceCounted.hpp:61
Timezone::asSeconds
const MAPM & asSeconds() const
Returns the whole timezone expressed in seconds.
Definition:
Timezone.hpp:63
DynamicContext
The execution time dynamic context interface.
Definition:
DynamicContext.hpp:38
ATDurationOrDerived.hpp
ReferenceCounted.hpp
Timezone::Ptr
RefCountPointer< const Timezone > Ptr
Definition:
Timezone.hpp:35
Timezone
Definition:
Timezone.hpp:32
Generated by
1.8.5