9ae26d7f80
Get the GUID from DDS and store it for future use. Which coul be handy for point-to-point connections over DDS.
Erik Hofman2021-04-07 11:51:32 +02:00
9cb98475b2
Fix MingW and MSVC builds: return a uniform type name across platforms.
Erik Hofman2021-03-29 16:08:06 +02:00
e58ca605b6
Delete the readers and writers (which closes them automatically) to prevent memory leaks.
Erik Hofman2021-03-29 11:41:12 +02:00
deb802f74a
WS30: Improve random vegetation, reduce frame paus
Stuart Buchanan2021-03-28 19:50:26 +01:00
17c79caea3
Add a convenience constructor which uses the types typename to call setup, eliminating the need to call setup separately.
Erik Hofman2021-03-28 08:57:37 +02:00
8e97b5e414
Add a helper function which converts the template typename into a topic name.
Erik Hofman2021-03-27 15:21:22 +01:00
5e837b50c4
Add a fubction which converts a template typename to a string
Erik Hofman2021-03-27 15:19:23 +01:00
0530bc2cd7
Add a templated helper function for read and write to simplify the code
Erik Hofman2021-03-27 13:56:21 +01:00
4b530e9376
Fix a mistake of effectively multiplying by DDS_NSECS_IN_SEC twice.
Erik Hofman2021-03-27 13:16:24 +01:00
55e0d4760f
Rename the SG_DDS class to SG_DDS_Topic and create a new SG_DDS class which can handle multiple SG_DDS_Topic classes with a single waitset. Add a unit test for DDS
Erik Hofman2021-03-19 13:51:58 +01:00
8e338389dd
MMap: fix a missed change to use pimpl.
James Turner2021-03-16 20:33:44 +00:00
0c72b5e622
Of course Windows has it's own _read and _write function whcih conflict with our own. Rename to mmap_read and mmap_write.
Erik Hofman2021-03-16 11:55:40 +01:00
c6a7dbd755
Do not allocate any memory but work directly on the mmapped buffer
Erik Hofman2021-03-16 10:30:58 +01:00
84f7faea05
Set EOF when reaching the end of the mmap buffer
Erik Hofman2021-03-16 10:30:27 +01:00
e8cbcebad8
Make life easier by implementing the system read and write function and call that from the classes read and write functions. Add a forward and rewind function. Add a test_untar derived mmap test utility.
Erik Hofman2021-03-16 09:51:37 +01:00
cf2fe76bb8
Log positions in courseDeg/distanceM failures
James Turner2021-03-15 15:09:59 +00:00
88beb40090
Make simple_mmap and simple_unmmap static private members of SGMMapFile. This should also fix the Windows build error on Jenkins.
Erik Hofman2021-03-15 14:45:52 +01:00
c539f7ebb6
Add an advance function to step through the mmaped buffer
Erik Hofman2021-03-15 13:29:39 +01:00
4ace6bda60
Use the new mmap functionality to access the timezone file, removing the need to keep the database in memory.
Erik Hofman2021-03-15 11:08:22 +01:00
f00a825e2d
Add a cross-platform file mmap class and use it to access the timezone file, removing the need to keep the database in memory.
Erik Hofman2021-03-15 10:58:17 +01:00
508a511070
More gracefully bail out on a missing timzeone file
Erik Hofman2021-03-13 13:09:59 +01:00
1ea11d987e
Add a function to get the timezone description
Erik Hofman2021-03-13 10:12:46 +01:00
feaac37705
Make SGTimeZoneCOntainer using a pimpl
James Turner2021-03-12 14:44:26 +00:00
4a1809b566
TerraSync: allow an explicit osm2city server
James Turner2021-03-12 12:47:51 +00:00
a9615869e3
If a reader is detected there is no need to test it further, just set a boolean.
Erik Hofman2021-03-12 10:48:12 +01:00
9bbb615fbf
Use sg_ifstream to load the timezone database into a buffer, and access the database from that buffer. This prevents opening and closing the files too often and allows for wide character paths on Windows.
Erik Hofman2021-03-12 09:27:15 +01:00
c9e24dcb0b
Use a vector database to get the timezone based on territorial boundaries
Erik Hofman2021-03-11 15:59:52 +01:00