OpenStructure
Loading...
Searching...
No Matches
jpk_util.hh
Go to the documentation of this file.
1//------------------------------------------------------------------------------
2// This file is part of the OpenStructure project <www.openstructure.org>
3//
4// Copyright (C) 2008-2020 by the OpenStructure authors
5// Copyright (C) 2003-2010 by the IPLT authors
6//
7//
8// This library is free software; you can redistribute it and/or modify it under
9// the terms of the GNU Lesser General Public License as published by the Free
10// Software Foundation; either version 3.0 of the License, or (at your option)
11// any later version.
12// This library is distributed in the hope that it will be useful, but WITHOUT
13// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14// FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
15// details.
16//
17// You should have received a copy of the GNU Lesser General Public License
18// along with this library; if not, write to the Free Software Foundation, Inc.,
19// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20//------------------------------------------------------------------------------
21#ifndef OST_IO_JPK_UTIL_HH
22#define OST_IO_JPK_UTIL_HH
23
24namespace ost { namespace io { namespace jpk_tags {
25
26const static unsigned int SLOT_COUNT=0x8080;
27const static unsigned int DEFAULT_SLOT=0x8081;
28const static unsigned int GRID_REFLECT=0x8045;
29const static unsigned int GRID_U_LENGTH=0x8042;
30const static unsigned int GRID_V_LENGTH=0x8043;
31
32
33inline unsigned int ScalingVar1(unsigned int n)
34{
35 return (0x80A4+(n)*0x30);
36}
37
38inline unsigned int ScalingVar2(unsigned int n)
39{
40 return (0x80A5+(n)* 0x30);
41}
42
43inline unsigned int ScalingMultiply(unsigned int n)
44{
45 return ScalingVar1(n);
46}
47
48inline unsigned int SlotName(unsigned n)
49{
50 return (0x8090+(n)*0x30);
51}
52
53inline unsigned int ScalingOffset(unsigned int n)
54{
55 return ScalingVar2(n);
56}
57inline unsigned int EncoderUnit(unsigned int n)
58{
59 return (0x80A2+(n)*0x30);
60}
61
62
63
64}}}
65
66#endif
unsigned int ScalingVar1(unsigned int n)
Definition jpk_util.hh:33
static const unsigned int SLOT_COUNT
Definition jpk_util.hh:26
static const unsigned int GRID_V_LENGTH
Definition jpk_util.hh:30
unsigned int SlotName(unsigned n)
Definition jpk_util.hh:48
static const unsigned int DEFAULT_SLOT
Definition jpk_util.hh:27
unsigned int ScalingOffset(unsigned int n)
Definition jpk_util.hh:53
unsigned int EncoderUnit(unsigned int n)
Definition jpk_util.hh:57
static const unsigned int GRID_U_LENGTH
Definition jpk_util.hh:29
unsigned int ScalingMultiply(unsigned int n)
Definition jpk_util.hh:43
static const unsigned int GRID_REFLECT
Definition jpk_util.hh:28
unsigned int ScalingVar2(unsigned int n)
Definition jpk_util.hh:38
Definition base.dox:1