Main Page
Related Pages
API Reference
Namespace List
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
g
i
n
o
p
r
s
t
v
w
x
z
Enumerations
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
w
x
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
p
r
s
t
u
v
w
x
y
z
Class List
Class List
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
v
z
Enumerations
b
c
e
f
g
h
k
o
p
r
s
t
v
Enumerator
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Related Functions
:
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
y
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
Variables
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
y
Typedefs
Enumerations
Enumerator
Macros
_
a
c
d
f
g
h
i
l
m
n
o
p
r
s
t
v
x
Examples
swig
tests
test_NavDataFactoryCallback.py
Go to the documentation of this file.
1
#!/usr/env python
2
3
import
unittest, sys, os
4
sys.path.insert(0, os.path.abspath(
".."
))
5
from
gnsstk.test_utils
import
args,run_unit_tests
6
7
import
gnsstk
8
9
class
PythonTestCallback
(
gnsstk.NavDataFactoryCallback
):
10
# Define Python class 'constructor'
11
def
__init__
(self, *args, **kwargs):
12
gnsstk.NavDataFactoryCallback.__init__(self, *args, **kwargs)
13
self.
count
= 0
14
15
# Override C++ method
16
def
process
(self, navOut):
17
print(
"foo"
);
18
return
True
19
20
class
TestNavDataFactoryCallback
(unittest.TestCase):
21
def
test_callback
(self):
22
fact =
gnsstk.MultiFormatNavDataFactory
()
23
uut =
PythonTestCallback
()
24
fact.process(args.input_dir+
25
'/test_input_rinex_nav_RinexNavExample.99n'
,
26
uut)
27
28
if
__name__ ==
'__main__'
:
29
run_unit_tests
()
tests.test_NavDataFactoryCallback.PythonTestCallback
Definition:
test_NavDataFactoryCallback.py:9
tests.test_NavDataFactoryCallback.PythonTestCallback.__init__
def __init__(self, *args, **kwargs)
Definition:
test_NavDataFactoryCallback.py:11
tests.test_NavDataFactoryCallback.PythonTestCallback.count
count
Definition:
test_NavDataFactoryCallback.py:13
gnsstk::NavDataFactoryCallback
Definition:
NavDataFactoryCallback.hpp:54
tests.test_NavDataFactoryCallback.TestNavDataFactoryCallback.test_callback
def test_callback(self)
Definition:
test_NavDataFactoryCallback.py:21
gnsstk::MultiFormatNavDataFactory
Definition:
MultiFormatNavDataFactory.hpp:74
tests.test_NavDataFactoryCallback.PythonTestCallback.process
def process(self, navOut)
Definition:
test_NavDataFactoryCallback.py:16
tests.test_NavDataFactoryCallback.TestNavDataFactoryCallback
Definition:
test_NavDataFactoryCallback.py:20
test_utils.run_unit_tests
def run_unit_tests()
Definition:
test_utils.py:51
gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:41