From 6554a40cdf23ee059caadb30c0ab95648f897873 Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Wed, 1 Jun 2011 14:40:24 +0200 Subject: [PATCH] Add osmpbf.h The idea is that this file can be included and will include all needed other files and contain some definitions. Not used yet, though. --- .gitignore | 1 + src/osmpbf.h | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 src/osmpbf.h diff --git a/.gitignore b/.gitignore index c016218..f3aa25e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ src/*.pb.h src/*.pb.o src/libosmpbf.a +*.swp diff --git a/src/osmpbf.h b/src/osmpbf.h new file mode 100644 index 0000000..6bff1a8 --- /dev/null +++ b/src/osmpbf.h @@ -0,0 +1,20 @@ +#ifndef OSMPBF_H +#define OSMPBF_H + +// this describes the low-level blob storage +#include + +// this describes the high-level OSM objects +#include + +namespace osmpbf { + + // the maximum size of a blob header in bytes + const int max_blob_header_size = 64 * 1024; + + // the maximum size of a blob in bytes + const int max_uncompressed_blob_size = 32 * 1024 * 1024; + +} + +#endif // OSMPBF_H