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

Chris Browet cbro at semperpax.com
Tue Nov 16 18:19:06 GMT 2010


On Tue, Nov 16, 2010 at 18:46, Scott Crosby <scrosby at cs.rice.edu> wrote:

> 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.
>
> Indeed, sorry.

There is something I don't understand, though... I cloned pbf2osm which has
OSM-binary as submodule.
When I do a "git submodule init" + "git submodule update" as instructed, I
get the .proto dated sep 15th (thus without the "package")

There must be some magic in git submodules that evades me...

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


More information about the dev mailing list