[OSM-dev] PBF: add a "package" keyword to the .proto for CPP namespace

Scott Crosby scrosby at cs.rice.edu
Tue Nov 16 17:46:38 GMT 2010


On Tue, Nov 16, 2010 at 10:52 AM, Chris Browet <cbro at semperpax.com> wrote:

> Hi,
>
> Would it be possible to add a "package zzz;" to the .proto files, as in
> google examples?
> In CPP, that will generate a namespace named zzz, which would avoid class
> name clashing (mind you, I happen to already have Node, Way and Relation
> classes in Merkaartor).
>

Yes. It was fixed in the github repo about a month ago. The package is
OSMPBF.

This reminds me; I still get this into OSM's SVN server and coordinate with
the Stefan to get his C/C++ implementation into the same repo. There needs
to be one canonical place with the *.proto files.

Scott
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20101116/805f98f7/attachment.html>


More information about the dev mailing list