12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: geodata.proto
- #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
- #include "geodata.pb.h"
- #include <algorithm>
- #include <google/protobuf/stubs/common.h>
- #include <google/protobuf/stubs/port.h>
- #include <google/protobuf/stubs/once.h>
- #include <google/protobuf/io/coded_stream.h>
- #include <google/protobuf/wire_format_lite_inl.h>
- #include <google/protobuf/descriptor.h>
- #include <google/protobuf/generated_message_reflection.h>
- #include <google/protobuf/reflection_ops.h>
- #include <google/protobuf/wire_format.h>
- // @@protoc_insertion_point(includes)
- namespace iv {
- namespace map {
- namespace {
- const ::google::protobuf::Descriptor* Point_descriptor_ = NULL;
- const ::google::protobuf::internal::GeneratedMessageReflection*
- Point_reflection_ = NULL;
- const ::google::protobuf::Descriptor* geodata_descriptor_ = NULL;
- const ::google::protobuf::internal::GeneratedMessageReflection*
- geodata_reflection_ = NULL;
- const ::google::protobuf::EnumDescriptor* geotype_descriptor_ = NULL;
- } // namespace
- void protobuf_AssignDesc_geodata_2eproto() GOOGLE_ATTRIBUTE_COLD;
- void protobuf_AssignDesc_geodata_2eproto() {
- protobuf_AddDesc_geodata_2eproto();
- const ::google::protobuf::FileDescriptor* file =
- ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
- "geodata.proto");
- GOOGLE_CHECK(file != NULL);
- Point_descriptor_ = file->message_type(0);
- static const int Point_offsets_[2] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Point, x_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Point, y_),
- };
- Point_reflection_ =
- ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
- Point_descriptor_,
- Point::default_instance_,
- Point_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Point, _has_bits_[0]),
- -1,
- -1,
- sizeof(Point),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Point, _internal_metadata_),
- -1);
- geodata_descriptor_ = file->message_type(1);
- static const int geodata_offsets_[25] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, index_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, start_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, end_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, hdg_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, index_start_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, index_end_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, off_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, curvature_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, s_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, type_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, curvcenter_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, mindis_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, maxdis_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, hdg_start_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, hdg_end_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, au_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, bu_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, cu_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, du_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, av_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, bv_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, cv_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, dv_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, polyuratio_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, polyvratio_),
- };
- geodata_reflection_ =
- ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
- geodata_descriptor_,
- geodata::default_instance_,
- geodata_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, _has_bits_[0]),
- -1,
- -1,
- sizeof(geodata),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, _internal_metadata_),
- -1);
- geotype_descriptor_ = file->enum_type(0);
- }
- namespace {
- GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
- inline void protobuf_AssignDescriptorsOnce() {
- ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
- &protobuf_AssignDesc_geodata_2eproto);
- }
- void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD;
- void protobuf_RegisterTypes(const ::std::string&) {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- Point_descriptor_, &Point::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- geodata_descriptor_, &geodata::default_instance());
- }
- } // namespace
- void protobuf_ShutdownFile_geodata_2eproto() {
- delete Point::default_instance_;
- delete Point_reflection_;
- delete geodata::default_instance_;
- delete geodata_reflection_;
- }
- void protobuf_AddDesc_geodata_2eproto() GOOGLE_ATTRIBUTE_COLD;
- void protobuf_AddDesc_geodata_2eproto() {
- static bool already_here = false;
- if (already_here) return;
- already_here = true;
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
- "\n\rgeodata.proto\022\006iv.map\"\035\n\005Point\022\t\n\001x\030\001 "
- "\002(\001\022\t\n\001y\030\002 \002(\001\"\300\003\n\007geodata\022\r\n\005index\030\001 \001("
- "\r\022\034\n\005start\030\002 \002(\0132\r.iv.map.Point\022\032\n\003end\030\003"
- " \002(\0132\r.iv.map.Point\022\013\n\003hdg\030\004 \001(\001\022\023\n\013inde"
- "x_start\030\005 \001(\005\022\021\n\tindex_end\030\006 \001(\005\022\013\n\003off\030"
- "\007 \001(\001\022\021\n\tcurvature\030\010 \001(\001\022\t\n\001s\030\n \001(\001\022\035\n\004t"
- "ype\030\t \002(\0162\017.iv.map.geotype\022!\n\ncurvcenter"
- "\030\013 \001(\0132\r.iv.map.Point\022\016\n\006mindis\030\014 \001(\001\022\016\n"
- "\006maxdis\030\r \001(\001\022\021\n\thdg_start\030\016 \001(\001\022\017\n\007hdg_"
- "end\030\017 \001(\001\022\n\n\002au\030\020 \001(\001\022\n\n\002bu\030\021 \001(\001\022\n\n\002cu\030"
- "\022 \001(\001\022\n\n\002du\030\023 \001(\001\022\n\n\002av\030\024 \001(\001\022\n\n\002bv\030\025 \001("
- "\001\022\n\n\002cv\030\026 \001(\001\022\n\n\002dv\030\027 \001(\001\022\022\n\npolyuratio\030"
- "\030 \001(\001\022\022\n\npolyvratio\030\031 \001(\001*,\n\007geotype\022\010\n\004"
- "LINE\020\000\022\007\n\003ARC\020\001\022\016\n\nPARAMPOLY3\020\002", 551);
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
- "geodata.proto", &protobuf_RegisterTypes);
- Point::default_instance_ = new Point();
- geodata::default_instance_ = new geodata();
- Point::default_instance_->InitAsDefaultInstance();
- geodata::default_instance_->InitAsDefaultInstance();
- ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_geodata_2eproto);
- }
- // Force AddDescriptors() to be called at static initialization time.
- struct StaticDescriptorInitializer_geodata_2eproto {
- StaticDescriptorInitializer_geodata_2eproto() {
- protobuf_AddDesc_geodata_2eproto();
- }
- } static_descriptor_initializer_geodata_2eproto_;
- const ::google::protobuf::EnumDescriptor* geotype_descriptor() {
- protobuf_AssignDescriptorsOnce();
- return geotype_descriptor_;
- }
- bool geotype_IsValid(int value) {
- switch(value) {
- case 0:
- case 1:
- case 2:
- return true;
- default:
- return false;
- }
- }
- // ===================================================================
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int Point::kXFieldNumber;
- const int Point::kYFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- Point::Point()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- SharedCtor();
- // @@protoc_insertion_point(constructor:iv.map.Point)
- }
- void Point::InitAsDefaultInstance() {
- }
- Point::Point(const Point& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- SharedCtor();
- MergeFrom(from);
- // @@protoc_insertion_point(copy_constructor:iv.map.Point)
- }
- void Point::SharedCtor() {
- _cached_size_ = 0;
- x_ = 0;
- y_ = 0;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- }
- Point::~Point() {
- // @@protoc_insertion_point(destructor:iv.map.Point)
- SharedDtor();
- }
- void Point::SharedDtor() {
- if (this != default_instance_) {
- }
- }
- void Point::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- }
- const ::google::protobuf::Descriptor* Point::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return Point_descriptor_;
- }
- const Point& Point::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_geodata_2eproto();
- return *default_instance_;
- }
- Point* Point::default_instance_ = NULL;
- Point* Point::New(::google::protobuf::Arena* arena) const {
- Point* n = new Point;
- if (arena != NULL) {
- arena->Own(n);
- }
- return n;
- }
- void Point::Clear() {
- // @@protoc_insertion_point(message_clear_start:iv.map.Point)
- #if defined(__clang__)
- #define ZR_HELPER_(f) \
- _Pragma("clang diagnostic push") \
- _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \
- __builtin_offsetof(Point, f) \
- _Pragma("clang diagnostic pop")
- #else
- #define ZR_HELPER_(f) reinterpret_cast<char*>(\
- &reinterpret_cast<Point*>(16)->f)
- #endif
- #define ZR_(first, last) do {\
- ::memset(&first, 0,\
- ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
- } while (0)
- ZR_(x_, y_);
- #undef ZR_HELPER_
- #undef ZR_
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- if (_internal_metadata_.have_unknown_fields()) {
- mutable_unknown_fields()->Clear();
- }
- }
- bool Point::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:iv.map.Point)
- for (;;) {
- ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // required double x = 1;
- case 1: {
- if (tag == 9) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &x_)));
- set_has_x();
- } else {
- goto handle_unusual;
- }
- if (input->ExpectTag(17)) goto parse_y;
- break;
- }
- // required double y = 2;
- case 2: {
- if (tag == 17) {
- parse_y:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &y_)));
- set_has_y();
- } else {
- goto handle_unusual;
- }
- if (input->ExpectAtEnd()) goto success;
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0 ||
- ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:iv.map.Point)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:iv.map.Point)
- return false;
- #undef DO_
- }
- void Point::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:iv.map.Point)
- // required double x = 1;
- if (has_x()) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(1, this->x(), output);
- }
- // required double y = 2;
- if (has_y()) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->y(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:iv.map.Point)
- }
- ::google::protobuf::uint8* Point::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- // @@protoc_insertion_point(serialize_to_array_start:iv.map.Point)
- // required double x = 1;
- if (has_x()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(1, this->x(), target);
- }
- // required double y = 2;
- if (has_y()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->y(), target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:iv.map.Point)
- return target;
- }
- int Point::RequiredFieldsByteSizeFallback() const {
- // @@protoc_insertion_point(required_fields_byte_size_fallback_start:iv.map.Point)
- int total_size = 0;
- if (has_x()) {
- // required double x = 1;
- total_size += 1 + 8;
- }
- if (has_y()) {
- // required double y = 2;
- total_size += 1 + 8;
- }
- return total_size;
- }
- int Point::ByteSize() const {
- // @@protoc_insertion_point(message_byte_size_start:iv.map.Point)
- int total_size = 0;
- if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present.
- // required double x = 1;
- total_size += 1 + 8;
- // required double y = 2;
- total_size += 1 + 8;
- } else {
- total_size += RequiredFieldsByteSizeFallback();
- }
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- return total_size;
- }
- void Point::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:iv.map.Point)
- if (GOOGLE_PREDICT_FALSE(&from == this)) {
- ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
- }
- const Point* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const Point>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:iv.map.Point)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:iv.map.Point)
- MergeFrom(*source);
- }
- }
- void Point::MergeFrom(const Point& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:iv.map.Point)
- if (GOOGLE_PREDICT_FALSE(&from == this)) {
- ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
- }
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_x()) {
- set_x(from.x());
- }
- if (from.has_y()) {
- set_y(from.y());
- }
- }
- if (from._internal_metadata_.have_unknown_fields()) {
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
- }
- }
- void Point::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:iv.map.Point)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void Point::CopyFrom(const Point& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:iv.map.Point)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool Point::IsInitialized() const {
- if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
- return true;
- }
- void Point::Swap(Point* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void Point::InternalSwap(Point* other) {
- std::swap(x_, other->x_);
- std::swap(y_, other->y_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- std::swap(_cached_size_, other->_cached_size_);
- }
- ::google::protobuf::Metadata Point::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = Point_descriptor_;
- metadata.reflection = Point_reflection_;
- return metadata;
- }
- #if PROTOBUF_INLINE_NOT_IN_HEADERS
- // Point
- // required double x = 1;
- bool Point::has_x() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- void Point::set_has_x() {
- _has_bits_[0] |= 0x00000001u;
- }
- void Point::clear_has_x() {
- _has_bits_[0] &= ~0x00000001u;
- }
- void Point::clear_x() {
- x_ = 0;
- clear_has_x();
- }
- double Point::x() const {
- // @@protoc_insertion_point(field_get:iv.map.Point.x)
- return x_;
- }
- void Point::set_x(double value) {
- set_has_x();
- x_ = value;
- // @@protoc_insertion_point(field_set:iv.map.Point.x)
- }
- // required double y = 2;
- bool Point::has_y() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- void Point::set_has_y() {
- _has_bits_[0] |= 0x00000002u;
- }
- void Point::clear_has_y() {
- _has_bits_[0] &= ~0x00000002u;
- }
- void Point::clear_y() {
- y_ = 0;
- clear_has_y();
- }
- double Point::y() const {
- // @@protoc_insertion_point(field_get:iv.map.Point.y)
- return y_;
- }
- void Point::set_y(double value) {
- set_has_y();
- y_ = value;
- // @@protoc_insertion_point(field_set:iv.map.Point.y)
- }
- #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
- // ===================================================================
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int geodata::kIndexFieldNumber;
- const int geodata::kStartFieldNumber;
- const int geodata::kEndFieldNumber;
- const int geodata::kHdgFieldNumber;
- const int geodata::kIndexStartFieldNumber;
- const int geodata::kIndexEndFieldNumber;
- const int geodata::kOffFieldNumber;
- const int geodata::kCurvatureFieldNumber;
- const int geodata::kSFieldNumber;
- const int geodata::kTypeFieldNumber;
- const int geodata::kCurvcenterFieldNumber;
- const int geodata::kMindisFieldNumber;
- const int geodata::kMaxdisFieldNumber;
- const int geodata::kHdgStartFieldNumber;
- const int geodata::kHdgEndFieldNumber;
- const int geodata::kAuFieldNumber;
- const int geodata::kBuFieldNumber;
- const int geodata::kCuFieldNumber;
- const int geodata::kDuFieldNumber;
- const int geodata::kAvFieldNumber;
- const int geodata::kBvFieldNumber;
- const int geodata::kCvFieldNumber;
- const int geodata::kDvFieldNumber;
- const int geodata::kPolyuratioFieldNumber;
- const int geodata::kPolyvratioFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- geodata::geodata()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- SharedCtor();
- // @@protoc_insertion_point(constructor:iv.map.geodata)
- }
- void geodata::InitAsDefaultInstance() {
- start_ = const_cast< ::iv::map::Point*>(&::iv::map::Point::default_instance());
- end_ = const_cast< ::iv::map::Point*>(&::iv::map::Point::default_instance());
- curvcenter_ = const_cast< ::iv::map::Point*>(&::iv::map::Point::default_instance());
- }
- geodata::geodata(const geodata& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- SharedCtor();
- MergeFrom(from);
- // @@protoc_insertion_point(copy_constructor:iv.map.geodata)
- }
- void geodata::SharedCtor() {
- _cached_size_ = 0;
- index_ = 0u;
- start_ = NULL;
- end_ = NULL;
- hdg_ = 0;
- index_start_ = 0;
- index_end_ = 0;
- off_ = 0;
- curvature_ = 0;
- s_ = 0;
- type_ = 0;
- curvcenter_ = NULL;
- mindis_ = 0;
- maxdis_ = 0;
- hdg_start_ = 0;
- hdg_end_ = 0;
- au_ = 0;
- bu_ = 0;
- cu_ = 0;
- du_ = 0;
- av_ = 0;
- bv_ = 0;
- cv_ = 0;
- dv_ = 0;
- polyuratio_ = 0;
- polyvratio_ = 0;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- }
- geodata::~geodata() {
- // @@protoc_insertion_point(destructor:iv.map.geodata)
- SharedDtor();
- }
- void geodata::SharedDtor() {
- if (this != default_instance_) {
- delete start_;
- delete end_;
- delete curvcenter_;
- }
- }
- void geodata::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- }
- const ::google::protobuf::Descriptor* geodata::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return geodata_descriptor_;
- }
- const geodata& geodata::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_geodata_2eproto();
- return *default_instance_;
- }
- geodata* geodata::default_instance_ = NULL;
- geodata* geodata::New(::google::protobuf::Arena* arena) const {
- geodata* n = new geodata;
- if (arena != NULL) {
- arena->Own(n);
- }
- return n;
- }
- void geodata::Clear() {
- // @@protoc_insertion_point(message_clear_start:iv.map.geodata)
- #if defined(__clang__)
- #define ZR_HELPER_(f) \
- _Pragma("clang diagnostic push") \
- _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \
- __builtin_offsetof(geodata, f) \
- _Pragma("clang diagnostic pop")
- #else
- #define ZR_HELPER_(f) reinterpret_cast<char*>(\
- &reinterpret_cast<geodata*>(16)->f)
- #endif
- #define ZR_(first, last) do {\
- ::memset(&first, 0,\
- ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
- } while (0)
- if (_has_bits_[0 / 32] & 255u) {
- ZR_(index_, index_end_);
- if (has_start()) {
- if (start_ != NULL) start_->::iv::map::Point::Clear();
- }
- if (has_end()) {
- if (end_ != NULL) end_->::iv::map::Point::Clear();
- }
- }
- if (_has_bits_[8 / 32] & 65280u) {
- ZR_(type_, s_);
- ZR_(mindis_, au_);
- if (has_curvcenter()) {
- if (curvcenter_ != NULL) curvcenter_->::iv::map::Point::Clear();
- }
- }
- if (_has_bits_[16 / 32] & 16711680u) {
- ZR_(bu_, polyuratio_);
- }
- polyvratio_ = 0;
- #undef ZR_HELPER_
- #undef ZR_
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- if (_internal_metadata_.have_unknown_fields()) {
- mutable_unknown_fields()->Clear();
- }
- }
- bool geodata::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:iv.map.geodata)
- for (;;) {
- ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // optional uint32 index = 1;
- case 1: {
- if (tag == 8) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
- input, &index_)));
- set_has_index();
- } else {
- goto handle_unusual;
- }
- if (input->ExpectTag(18)) goto parse_start;
- break;
- }
- // required .iv.map.Point start = 2;
- case 2: {
- if (tag == 18) {
- parse_start:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, mutable_start()));
- } else {
- goto handle_unusual;
- }
- if (input->ExpectTag(26)) goto parse_end;
- break;
- }
- // required .iv.map.Point end = 3;
- case 3: {
- if (tag == 26) {
- parse_end:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, mutable_end()));
- } else {
- goto handle_unusual;
- }
- if (input->ExpectTag(33)) goto parse_hdg;
- break;
- }
- // optional double hdg = 4;
- case 4: {
- if (tag == 33) {
- parse_hdg:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &hdg_)));
- set_has_hdg();
- } else {
- goto handle_unusual;
- }
- if (input->ExpectTag(40)) goto parse_index_start;
- break;
- }
- // optional int32 index_start = 5;
- case 5: {
- if (tag == 40) {
- parse_index_start:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &index_start_)));
- set_has_index_start();
- } else {
- goto handle_unusual;
- }
- if (input->ExpectTag(48)) goto parse_index_end;
- break;
- }
- // optional int32 index_end = 6;
- case 6: {
- if (tag == 48) {
- parse_index_end:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &index_end_)));
- set_has_index_end();
- } else {
- goto handle_unusual;
- }
- if (input->ExpectTag(57)) goto parse_off;
- break;
- }
- // optional double off = 7;
- case 7: {
- if (tag == 57) {
- parse_off:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &off_)));
- set_has_off();
- } else {
- goto handle_unusual;
- }
- if (input->ExpectTag(65)) goto parse_curvature;
- break;
- }
- // optional double curvature = 8;
- case 8: {
- if (tag == 65) {
- parse_curvature:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &curvature_)));
- set_has_curvature();
- } else {
- goto handle_unusual;
- }
- if (input->ExpectTag(72)) goto parse_type;
- break;
- }
- // required .iv.map.geotype type = 9;
- case 9: {
- if (tag == 72) {
- parse_type:
- int value;
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
- input, &value)));
- if (::iv::map::geotype_IsValid(value)) {
- set_type(static_cast< ::iv::map::geotype >(value));
- } else {
- mutable_unknown_fields()->AddVarint(9, value);
- }
- } else {
- goto handle_unusual;
- }
- if (input->ExpectTag(81)) goto parse_s;
- break;
- }
- // optional double s = 10;
- case 10: {
- if (tag == 81) {
- parse_s:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &s_)));
- set_has_s();
- } else {
- goto handle_unusual;
- }
- if (input->ExpectTag(90)) goto parse_curvcenter;
- break;
- }
- // optional .iv.map.Point curvcenter = 11;
- case 11: {
- if (tag == 90) {
- parse_curvcenter:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, mutable_curvcenter()));
- } else {
- goto handle_unusual;
- }
- if (input->ExpectTag(97)) goto parse_mindis;
- break;
- }
- // optional double mindis = 12;
- case 12: {
- if (tag == 97) {
- parse_mindis:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &mindis_)));
- set_has_mindis();
- } else {
- goto handle_unusual;
- }
- if (input->ExpectTag(105)) goto parse_maxdis;
- break;
- }
- // optional double maxdis = 13;
- case 13: {
- if (tag == 105) {
- parse_maxdis:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &maxdis_)));
- set_has_maxdis();
- } else {
- goto handle_unusual;
- }
- if (input->ExpectTag(113)) goto parse_hdg_start;
- break;
- }
- // optional double hdg_start = 14;
- case 14: {
- if (tag == 113) {
- parse_hdg_start:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &hdg_start_)));
- set_has_hdg_start();
- } else {
- goto handle_unusual;
- }
- if (input->ExpectTag(121)) goto parse_hdg_end;
- break;
- }
- // optional double hdg_end = 15;
- case 15: {
- if (tag == 121) {
- parse_hdg_end:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &hdg_end_)));
- set_has_hdg_end();
- } else {
- goto handle_unusual;
- }
- if (input->ExpectTag(129)) goto parse_au;
- break;
- }
- // optional double au = 16;
- case 16: {
- if (tag == 129) {
- parse_au:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &au_)));
- set_has_au();
- } else {
- goto handle_unusual;
- }
- if (input->ExpectTag(137)) goto parse_bu;
- break;
- }
- // optional double bu = 17;
- case 17: {
- if (tag == 137) {
- parse_bu:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &bu_)));
- set_has_bu();
- } else {
- goto handle_unusual;
- }
- if (input->ExpectTag(145)) goto parse_cu;
- break;
- }
- // optional double cu = 18;
- case 18: {
- if (tag == 145) {
- parse_cu:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &cu_)));
- set_has_cu();
- } else {
- goto handle_unusual;
- }
- if (input->ExpectTag(153)) goto parse_du;
- break;
- }
- // optional double du = 19;
- case 19: {
- if (tag == 153) {
- parse_du:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &du_)));
- set_has_du();
- } else {
- goto handle_unusual;
- }
- if (input->ExpectTag(161)) goto parse_av;
- break;
- }
- // optional double av = 20;
- case 20: {
- if (tag == 161) {
- parse_av:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &av_)));
- set_has_av();
- } else {
- goto handle_unusual;
- }
- if (input->ExpectTag(169)) goto parse_bv;
- break;
- }
- // optional double bv = 21;
- case 21: {
- if (tag == 169) {
- parse_bv:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &bv_)));
- set_has_bv();
- } else {
- goto handle_unusual;
- }
- if (input->ExpectTag(177)) goto parse_cv;
- break;
- }
- // optional double cv = 22;
- case 22: {
- if (tag == 177) {
- parse_cv:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &cv_)));
- set_has_cv();
- } else {
- goto handle_unusual;
- }
- if (input->ExpectTag(185)) goto parse_dv;
- break;
- }
- // optional double dv = 23;
- case 23: {
- if (tag == 185) {
- parse_dv:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &dv_)));
- set_has_dv();
- } else {
- goto handle_unusual;
- }
- if (input->ExpectTag(193)) goto parse_polyuratio;
- break;
- }
- // optional double polyuratio = 24;
- case 24: {
- if (tag == 193) {
- parse_polyuratio:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &polyuratio_)));
- set_has_polyuratio();
- } else {
- goto handle_unusual;
- }
- if (input->ExpectTag(201)) goto parse_polyvratio;
- break;
- }
- // optional double polyvratio = 25;
- case 25: {
- if (tag == 201) {
- parse_polyvratio:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &polyvratio_)));
- set_has_polyvratio();
- } else {
- goto handle_unusual;
- }
- if (input->ExpectAtEnd()) goto success;
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0 ||
- ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:iv.map.geodata)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:iv.map.geodata)
- return false;
- #undef DO_
- }
- void geodata::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:iv.map.geodata)
- // optional uint32 index = 1;
- if (has_index()) {
- ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->index(), output);
- }
- // required .iv.map.Point start = 2;
- if (has_start()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2, *this->start_, output);
- }
- // required .iv.map.Point end = 3;
- if (has_end()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 3, *this->end_, output);
- }
- // optional double hdg = 4;
- if (has_hdg()) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(4, this->hdg(), output);
- }
- // optional int32 index_start = 5;
- if (has_index_start()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->index_start(), output);
- }
- // optional int32 index_end = 6;
- if (has_index_end()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->index_end(), output);
- }
- // optional double off = 7;
- if (has_off()) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(7, this->off(), output);
- }
- // optional double curvature = 8;
- if (has_curvature()) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(8, this->curvature(), output);
- }
- // required .iv.map.geotype type = 9;
- if (has_type()) {
- ::google::protobuf::internal::WireFormatLite::WriteEnum(
- 9, this->type(), output);
- }
- // optional double s = 10;
- if (has_s()) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(10, this->s(), output);
- }
- // optional .iv.map.Point curvcenter = 11;
- if (has_curvcenter()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 11, *this->curvcenter_, output);
- }
- // optional double mindis = 12;
- if (has_mindis()) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(12, this->mindis(), output);
- }
- // optional double maxdis = 13;
- if (has_maxdis()) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(13, this->maxdis(), output);
- }
- // optional double hdg_start = 14;
- if (has_hdg_start()) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(14, this->hdg_start(), output);
- }
- // optional double hdg_end = 15;
- if (has_hdg_end()) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(15, this->hdg_end(), output);
- }
- // optional double au = 16;
- if (has_au()) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(16, this->au(), output);
- }
- // optional double bu = 17;
- if (has_bu()) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(17, this->bu(), output);
- }
- // optional double cu = 18;
- if (has_cu()) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(18, this->cu(), output);
- }
- // optional double du = 19;
- if (has_du()) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(19, this->du(), output);
- }
- // optional double av = 20;
- if (has_av()) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(20, this->av(), output);
- }
- // optional double bv = 21;
- if (has_bv()) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(21, this->bv(), output);
- }
- // optional double cv = 22;
- if (has_cv()) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(22, this->cv(), output);
- }
- // optional double dv = 23;
- if (has_dv()) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(23, this->dv(), output);
- }
- // optional double polyuratio = 24;
- if (has_polyuratio()) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(24, this->polyuratio(), output);
- }
- // optional double polyvratio = 25;
- if (has_polyvratio()) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(25, this->polyvratio(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:iv.map.geodata)
- }
- ::google::protobuf::uint8* geodata::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- // @@protoc_insertion_point(serialize_to_array_start:iv.map.geodata)
- // optional uint32 index = 1;
- if (has_index()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->index(), target);
- }
- // required .iv.map.Point start = 2;
- if (has_start()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 2, *this->start_, false, target);
- }
- // required .iv.map.Point end = 3;
- if (has_end()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 3, *this->end_, false, target);
- }
- // optional double hdg = 4;
- if (has_hdg()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(4, this->hdg(), target);
- }
- // optional int32 index_start = 5;
- if (has_index_start()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->index_start(), target);
- }
- // optional int32 index_end = 6;
- if (has_index_end()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->index_end(), target);
- }
- // optional double off = 7;
- if (has_off()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(7, this->off(), target);
- }
- // optional double curvature = 8;
- if (has_curvature()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(8, this->curvature(), target);
- }
- // required .iv.map.geotype type = 9;
- if (has_type()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
- 9, this->type(), target);
- }
- // optional double s = 10;
- if (has_s()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(10, this->s(), target);
- }
- // optional .iv.map.Point curvcenter = 11;
- if (has_curvcenter()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 11, *this->curvcenter_, false, target);
- }
- // optional double mindis = 12;
- if (has_mindis()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(12, this->mindis(), target);
- }
- // optional double maxdis = 13;
- if (has_maxdis()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(13, this->maxdis(), target);
- }
- // optional double hdg_start = 14;
- if (has_hdg_start()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(14, this->hdg_start(), target);
- }
- // optional double hdg_end = 15;
- if (has_hdg_end()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(15, this->hdg_end(), target);
- }
- // optional double au = 16;
- if (has_au()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(16, this->au(), target);
- }
- // optional double bu = 17;
- if (has_bu()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(17, this->bu(), target);
- }
- // optional double cu = 18;
- if (has_cu()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(18, this->cu(), target);
- }
- // optional double du = 19;
- if (has_du()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(19, this->du(), target);
- }
- // optional double av = 20;
- if (has_av()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(20, this->av(), target);
- }
- // optional double bv = 21;
- if (has_bv()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(21, this->bv(), target);
- }
- // optional double cv = 22;
- if (has_cv()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(22, this->cv(), target);
- }
- // optional double dv = 23;
- if (has_dv()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(23, this->dv(), target);
- }
- // optional double polyuratio = 24;
- if (has_polyuratio()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(24, this->polyuratio(), target);
- }
- // optional double polyvratio = 25;
- if (has_polyvratio()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(25, this->polyvratio(), target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:iv.map.geodata)
- return target;
- }
- int geodata::RequiredFieldsByteSizeFallback() const {
- // @@protoc_insertion_point(required_fields_byte_size_fallback_start:iv.map.geodata)
- int total_size = 0;
- if (has_start()) {
- // required .iv.map.Point start = 2;
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- *this->start_);
- }
- if (has_end()) {
- // required .iv.map.Point end = 3;
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- *this->end_);
- }
- if (has_type()) {
- // required .iv.map.geotype type = 9;
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
- }
- return total_size;
- }
- int geodata::ByteSize() const {
- // @@protoc_insertion_point(message_byte_size_start:iv.map.geodata)
- int total_size = 0;
- if (((_has_bits_[0] & 0x00000206) ^ 0x00000206) == 0) { // All required fields are present.
- // required .iv.map.Point start = 2;
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- *this->start_);
- // required .iv.map.Point end = 3;
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- *this->end_);
- // required .iv.map.geotype type = 9;
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
- } else {
- total_size += RequiredFieldsByteSizeFallback();
- }
- if (_has_bits_[0 / 32] & 249u) {
- // optional uint32 index = 1;
- if (has_index()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::UInt32Size(
- this->index());
- }
- // optional double hdg = 4;
- if (has_hdg()) {
- total_size += 1 + 8;
- }
- // optional int32 index_start = 5;
- if (has_index_start()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->index_start());
- }
- // optional int32 index_end = 6;
- if (has_index_end()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->index_end());
- }
- // optional double off = 7;
- if (has_off()) {
- total_size += 1 + 8;
- }
- // optional double curvature = 8;
- if (has_curvature()) {
- total_size += 1 + 8;
- }
- }
- if (_has_bits_[8 / 32] & 64768u) {
- // optional double s = 10;
- if (has_s()) {
- total_size += 1 + 8;
- }
- // optional .iv.map.Point curvcenter = 11;
- if (has_curvcenter()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- *this->curvcenter_);
- }
- // optional double mindis = 12;
- if (has_mindis()) {
- total_size += 1 + 8;
- }
- // optional double maxdis = 13;
- if (has_maxdis()) {
- total_size += 1 + 8;
- }
- // optional double hdg_start = 14;
- if (has_hdg_start()) {
- total_size += 1 + 8;
- }
- // optional double hdg_end = 15;
- if (has_hdg_end()) {
- total_size += 1 + 8;
- }
- // optional double au = 16;
- if (has_au()) {
- total_size += 2 + 8;
- }
- }
- if (_has_bits_[16 / 32] & 16711680u) {
- // optional double bu = 17;
- if (has_bu()) {
- total_size += 2 + 8;
- }
- // optional double cu = 18;
- if (has_cu()) {
- total_size += 2 + 8;
- }
- // optional double du = 19;
- if (has_du()) {
- total_size += 2 + 8;
- }
- // optional double av = 20;
- if (has_av()) {
- total_size += 2 + 8;
- }
- // optional double bv = 21;
- if (has_bv()) {
- total_size += 2 + 8;
- }
- // optional double cv = 22;
- if (has_cv()) {
- total_size += 2 + 8;
- }
- // optional double dv = 23;
- if (has_dv()) {
- total_size += 2 + 8;
- }
- // optional double polyuratio = 24;
- if (has_polyuratio()) {
- total_size += 2 + 8;
- }
- }
- // optional double polyvratio = 25;
- if (has_polyvratio()) {
- total_size += 2 + 8;
- }
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- return total_size;
- }
- void geodata::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:iv.map.geodata)
- if (GOOGLE_PREDICT_FALSE(&from == this)) {
- ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
- }
- const geodata* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const geodata>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:iv.map.geodata)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:iv.map.geodata)
- MergeFrom(*source);
- }
- }
- void geodata::MergeFrom(const geodata& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:iv.map.geodata)
- if (GOOGLE_PREDICT_FALSE(&from == this)) {
- ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
- }
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_index()) {
- set_index(from.index());
- }
- if (from.has_start()) {
- mutable_start()->::iv::map::Point::MergeFrom(from.start());
- }
- if (from.has_end()) {
- mutable_end()->::iv::map::Point::MergeFrom(from.end());
- }
- if (from.has_hdg()) {
- set_hdg(from.hdg());
- }
- if (from.has_index_start()) {
- set_index_start(from.index_start());
- }
- if (from.has_index_end()) {
- set_index_end(from.index_end());
- }
- if (from.has_off()) {
- set_off(from.off());
- }
- if (from.has_curvature()) {
- set_curvature(from.curvature());
- }
- }
- if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
- if (from.has_s()) {
- set_s(from.s());
- }
- if (from.has_type()) {
- set_type(from.type());
- }
- if (from.has_curvcenter()) {
- mutable_curvcenter()->::iv::map::Point::MergeFrom(from.curvcenter());
- }
- if (from.has_mindis()) {
- set_mindis(from.mindis());
- }
- if (from.has_maxdis()) {
- set_maxdis(from.maxdis());
- }
- if (from.has_hdg_start()) {
- set_hdg_start(from.hdg_start());
- }
- if (from.has_hdg_end()) {
- set_hdg_end(from.hdg_end());
- }
- if (from.has_au()) {
- set_au(from.au());
- }
- }
- if (from._has_bits_[16 / 32] & (0xffu << (16 % 32))) {
- if (from.has_bu()) {
- set_bu(from.bu());
- }
- if (from.has_cu()) {
- set_cu(from.cu());
- }
- if (from.has_du()) {
- set_du(from.du());
- }
- if (from.has_av()) {
- set_av(from.av());
- }
- if (from.has_bv()) {
- set_bv(from.bv());
- }
- if (from.has_cv()) {
- set_cv(from.cv());
- }
- if (from.has_dv()) {
- set_dv(from.dv());
- }
- if (from.has_polyuratio()) {
- set_polyuratio(from.polyuratio());
- }
- }
- if (from._has_bits_[24 / 32] & (0xffu << (24 % 32))) {
- if (from.has_polyvratio()) {
- set_polyvratio(from.polyvratio());
- }
- }
- if (from._internal_metadata_.have_unknown_fields()) {
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
- }
- }
- void geodata::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:iv.map.geodata)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void geodata::CopyFrom(const geodata& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:iv.map.geodata)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool geodata::IsInitialized() const {
- if ((_has_bits_[0] & 0x00000206) != 0x00000206) return false;
- if (has_start()) {
- if (!this->start_->IsInitialized()) return false;
- }
- if (has_end()) {
- if (!this->end_->IsInitialized()) return false;
- }
- if (has_curvcenter()) {
- if (!this->curvcenter_->IsInitialized()) return false;
- }
- return true;
- }
- void geodata::Swap(geodata* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void geodata::InternalSwap(geodata* other) {
- std::swap(index_, other->index_);
- std::swap(start_, other->start_);
- std::swap(end_, other->end_);
- std::swap(hdg_, other->hdg_);
- std::swap(index_start_, other->index_start_);
- std::swap(index_end_, other->index_end_);
- std::swap(off_, other->off_);
- std::swap(curvature_, other->curvature_);
- std::swap(s_, other->s_);
- std::swap(type_, other->type_);
- std::swap(curvcenter_, other->curvcenter_);
- std::swap(mindis_, other->mindis_);
- std::swap(maxdis_, other->maxdis_);
- std::swap(hdg_start_, other->hdg_start_);
- std::swap(hdg_end_, other->hdg_end_);
- std::swap(au_, other->au_);
- std::swap(bu_, other->bu_);
- std::swap(cu_, other->cu_);
- std::swap(du_, other->du_);
- std::swap(av_, other->av_);
- std::swap(bv_, other->bv_);
- std::swap(cv_, other->cv_);
- std::swap(dv_, other->dv_);
- std::swap(polyuratio_, other->polyuratio_);
- std::swap(polyvratio_, other->polyvratio_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- std::swap(_cached_size_, other->_cached_size_);
- }
- ::google::protobuf::Metadata geodata::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = geodata_descriptor_;
- metadata.reflection = geodata_reflection_;
- return metadata;
- }
- #if PROTOBUF_INLINE_NOT_IN_HEADERS
- // geodata
- // optional uint32 index = 1;
- bool geodata::has_index() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- void geodata::set_has_index() {
- _has_bits_[0] |= 0x00000001u;
- }
- void geodata::clear_has_index() {
- _has_bits_[0] &= ~0x00000001u;
- }
- void geodata::clear_index() {
- index_ = 0u;
- clear_has_index();
- }
- ::google::protobuf::uint32 geodata::index() const {
- // @@protoc_insertion_point(field_get:iv.map.geodata.index)
- return index_;
- }
- void geodata::set_index(::google::protobuf::uint32 value) {
- set_has_index();
- index_ = value;
- // @@protoc_insertion_point(field_set:iv.map.geodata.index)
- }
- // required .iv.map.Point start = 2;
- bool geodata::has_start() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- void geodata::set_has_start() {
- _has_bits_[0] |= 0x00000002u;
- }
- void geodata::clear_has_start() {
- _has_bits_[0] &= ~0x00000002u;
- }
- void geodata::clear_start() {
- if (start_ != NULL) start_->::iv::map::Point::Clear();
- clear_has_start();
- }
- const ::iv::map::Point& geodata::start() const {
- // @@protoc_insertion_point(field_get:iv.map.geodata.start)
- return start_ != NULL ? *start_ : *default_instance_->start_;
- }
- ::iv::map::Point* geodata::mutable_start() {
- set_has_start();
- if (start_ == NULL) {
- start_ = new ::iv::map::Point;
- }
- // @@protoc_insertion_point(field_mutable:iv.map.geodata.start)
- return start_;
- }
- ::iv::map::Point* geodata::release_start() {
- // @@protoc_insertion_point(field_release:iv.map.geodata.start)
- clear_has_start();
- ::iv::map::Point* temp = start_;
- start_ = NULL;
- return temp;
- }
- void geodata::set_allocated_start(::iv::map::Point* start) {
- delete start_;
- start_ = start;
- if (start) {
- set_has_start();
- } else {
- clear_has_start();
- }
- // @@protoc_insertion_point(field_set_allocated:iv.map.geodata.start)
- }
- // required .iv.map.Point end = 3;
- bool geodata::has_end() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
- }
- void geodata::set_has_end() {
- _has_bits_[0] |= 0x00000004u;
- }
- void geodata::clear_has_end() {
- _has_bits_[0] &= ~0x00000004u;
- }
- void geodata::clear_end() {
- if (end_ != NULL) end_->::iv::map::Point::Clear();
- clear_has_end();
- }
- const ::iv::map::Point& geodata::end() const {
- // @@protoc_insertion_point(field_get:iv.map.geodata.end)
- return end_ != NULL ? *end_ : *default_instance_->end_;
- }
- ::iv::map::Point* geodata::mutable_end() {
- set_has_end();
- if (end_ == NULL) {
- end_ = new ::iv::map::Point;
- }
- // @@protoc_insertion_point(field_mutable:iv.map.geodata.end)
- return end_;
- }
- ::iv::map::Point* geodata::release_end() {
- // @@protoc_insertion_point(field_release:iv.map.geodata.end)
- clear_has_end();
- ::iv::map::Point* temp = end_;
- end_ = NULL;
- return temp;
- }
- void geodata::set_allocated_end(::iv::map::Point* end) {
- delete end_;
- end_ = end;
- if (end) {
- set_has_end();
- } else {
- clear_has_end();
- }
- // @@protoc_insertion_point(field_set_allocated:iv.map.geodata.end)
- }
- // optional double hdg = 4;
- bool geodata::has_hdg() const {
- return (_has_bits_[0] & 0x00000008u) != 0;
- }
- void geodata::set_has_hdg() {
- _has_bits_[0] |= 0x00000008u;
- }
- void geodata::clear_has_hdg() {
- _has_bits_[0] &= ~0x00000008u;
- }
- void geodata::clear_hdg() {
- hdg_ = 0;
- clear_has_hdg();
- }
- double geodata::hdg() const {
- // @@protoc_insertion_point(field_get:iv.map.geodata.hdg)
- return hdg_;
- }
- void geodata::set_hdg(double value) {
- set_has_hdg();
- hdg_ = value;
- // @@protoc_insertion_point(field_set:iv.map.geodata.hdg)
- }
- // optional int32 index_start = 5;
- bool geodata::has_index_start() const {
- return (_has_bits_[0] & 0x00000010u) != 0;
- }
- void geodata::set_has_index_start() {
- _has_bits_[0] |= 0x00000010u;
- }
- void geodata::clear_has_index_start() {
- _has_bits_[0] &= ~0x00000010u;
- }
- void geodata::clear_index_start() {
- index_start_ = 0;
- clear_has_index_start();
- }
- ::google::protobuf::int32 geodata::index_start() const {
- // @@protoc_insertion_point(field_get:iv.map.geodata.index_start)
- return index_start_;
- }
- void geodata::set_index_start(::google::protobuf::int32 value) {
- set_has_index_start();
- index_start_ = value;
- // @@protoc_insertion_point(field_set:iv.map.geodata.index_start)
- }
- // optional int32 index_end = 6;
- bool geodata::has_index_end() const {
- return (_has_bits_[0] & 0x00000020u) != 0;
- }
- void geodata::set_has_index_end() {
- _has_bits_[0] |= 0x00000020u;
- }
- void geodata::clear_has_index_end() {
- _has_bits_[0] &= ~0x00000020u;
- }
- void geodata::clear_index_end() {
- index_end_ = 0;
- clear_has_index_end();
- }
- ::google::protobuf::int32 geodata::index_end() const {
- // @@protoc_insertion_point(field_get:iv.map.geodata.index_end)
- return index_end_;
- }
- void geodata::set_index_end(::google::protobuf::int32 value) {
- set_has_index_end();
- index_end_ = value;
- // @@protoc_insertion_point(field_set:iv.map.geodata.index_end)
- }
- // optional double off = 7;
- bool geodata::has_off() const {
- return (_has_bits_[0] & 0x00000040u) != 0;
- }
- void geodata::set_has_off() {
- _has_bits_[0] |= 0x00000040u;
- }
- void geodata::clear_has_off() {
- _has_bits_[0] &= ~0x00000040u;
- }
- void geodata::clear_off() {
- off_ = 0;
- clear_has_off();
- }
- double geodata::off() const {
- // @@protoc_insertion_point(field_get:iv.map.geodata.off)
- return off_;
- }
- void geodata::set_off(double value) {
- set_has_off();
- off_ = value;
- // @@protoc_insertion_point(field_set:iv.map.geodata.off)
- }
- // optional double curvature = 8;
- bool geodata::has_curvature() const {
- return (_has_bits_[0] & 0x00000080u) != 0;
- }
- void geodata::set_has_curvature() {
- _has_bits_[0] |= 0x00000080u;
- }
- void geodata::clear_has_curvature() {
- _has_bits_[0] &= ~0x00000080u;
- }
- void geodata::clear_curvature() {
- curvature_ = 0;
- clear_has_curvature();
- }
- double geodata::curvature() const {
- // @@protoc_insertion_point(field_get:iv.map.geodata.curvature)
- return curvature_;
- }
- void geodata::set_curvature(double value) {
- set_has_curvature();
- curvature_ = value;
- // @@protoc_insertion_point(field_set:iv.map.geodata.curvature)
- }
- // optional double s = 10;
- bool geodata::has_s() const {
- return (_has_bits_[0] & 0x00000100u) != 0;
- }
- void geodata::set_has_s() {
- _has_bits_[0] |= 0x00000100u;
- }
- void geodata::clear_has_s() {
- _has_bits_[0] &= ~0x00000100u;
- }
- void geodata::clear_s() {
- s_ = 0;
- clear_has_s();
- }
- double geodata::s() const {
- // @@protoc_insertion_point(field_get:iv.map.geodata.s)
- return s_;
- }
- void geodata::set_s(double value) {
- set_has_s();
- s_ = value;
- // @@protoc_insertion_point(field_set:iv.map.geodata.s)
- }
- // required .iv.map.geotype type = 9;
- bool geodata::has_type() const {
- return (_has_bits_[0] & 0x00000200u) != 0;
- }
- void geodata::set_has_type() {
- _has_bits_[0] |= 0x00000200u;
- }
- void geodata::clear_has_type() {
- _has_bits_[0] &= ~0x00000200u;
- }
- void geodata::clear_type() {
- type_ = 0;
- clear_has_type();
- }
- ::iv::map::geotype geodata::type() const {
- // @@protoc_insertion_point(field_get:iv.map.geodata.type)
- return static_cast< ::iv::map::geotype >(type_);
- }
- void geodata::set_type(::iv::map::geotype value) {
- assert(::iv::map::geotype_IsValid(value));
- set_has_type();
- type_ = value;
- // @@protoc_insertion_point(field_set:iv.map.geodata.type)
- }
- // optional .iv.map.Point curvcenter = 11;
- bool geodata::has_curvcenter() const {
- return (_has_bits_[0] & 0x00000400u) != 0;
- }
- void geodata::set_has_curvcenter() {
- _has_bits_[0] |= 0x00000400u;
- }
- void geodata::clear_has_curvcenter() {
- _has_bits_[0] &= ~0x00000400u;
- }
- void geodata::clear_curvcenter() {
- if (curvcenter_ != NULL) curvcenter_->::iv::map::Point::Clear();
- clear_has_curvcenter();
- }
- const ::iv::map::Point& geodata::curvcenter() const {
- // @@protoc_insertion_point(field_get:iv.map.geodata.curvcenter)
- return curvcenter_ != NULL ? *curvcenter_ : *default_instance_->curvcenter_;
- }
- ::iv::map::Point* geodata::mutable_curvcenter() {
- set_has_curvcenter();
- if (curvcenter_ == NULL) {
- curvcenter_ = new ::iv::map::Point;
- }
- // @@protoc_insertion_point(field_mutable:iv.map.geodata.curvcenter)
- return curvcenter_;
- }
- ::iv::map::Point* geodata::release_curvcenter() {
- // @@protoc_insertion_point(field_release:iv.map.geodata.curvcenter)
- clear_has_curvcenter();
- ::iv::map::Point* temp = curvcenter_;
- curvcenter_ = NULL;
- return temp;
- }
- void geodata::set_allocated_curvcenter(::iv::map::Point* curvcenter) {
- delete curvcenter_;
- curvcenter_ = curvcenter;
- if (curvcenter) {
- set_has_curvcenter();
- } else {
- clear_has_curvcenter();
- }
- // @@protoc_insertion_point(field_set_allocated:iv.map.geodata.curvcenter)
- }
- // optional double mindis = 12;
- bool geodata::has_mindis() const {
- return (_has_bits_[0] & 0x00000800u) != 0;
- }
- void geodata::set_has_mindis() {
- _has_bits_[0] |= 0x00000800u;
- }
- void geodata::clear_has_mindis() {
- _has_bits_[0] &= ~0x00000800u;
- }
- void geodata::clear_mindis() {
- mindis_ = 0;
- clear_has_mindis();
- }
- double geodata::mindis() const {
- // @@protoc_insertion_point(field_get:iv.map.geodata.mindis)
- return mindis_;
- }
- void geodata::set_mindis(double value) {
- set_has_mindis();
- mindis_ = value;
- // @@protoc_insertion_point(field_set:iv.map.geodata.mindis)
- }
- // optional double maxdis = 13;
- bool geodata::has_maxdis() const {
- return (_has_bits_[0] & 0x00001000u) != 0;
- }
- void geodata::set_has_maxdis() {
- _has_bits_[0] |= 0x00001000u;
- }
- void geodata::clear_has_maxdis() {
- _has_bits_[0] &= ~0x00001000u;
- }
- void geodata::clear_maxdis() {
- maxdis_ = 0;
- clear_has_maxdis();
- }
- double geodata::maxdis() const {
- // @@protoc_insertion_point(field_get:iv.map.geodata.maxdis)
- return maxdis_;
- }
- void geodata::set_maxdis(double value) {
- set_has_maxdis();
- maxdis_ = value;
- // @@protoc_insertion_point(field_set:iv.map.geodata.maxdis)
- }
- // optional double hdg_start = 14;
- bool geodata::has_hdg_start() const {
- return (_has_bits_[0] & 0x00002000u) != 0;
- }
- void geodata::set_has_hdg_start() {
- _has_bits_[0] |= 0x00002000u;
- }
- void geodata::clear_has_hdg_start() {
- _has_bits_[0] &= ~0x00002000u;
- }
- void geodata::clear_hdg_start() {
- hdg_start_ = 0;
- clear_has_hdg_start();
- }
- double geodata::hdg_start() const {
- // @@protoc_insertion_point(field_get:iv.map.geodata.hdg_start)
- return hdg_start_;
- }
- void geodata::set_hdg_start(double value) {
- set_has_hdg_start();
- hdg_start_ = value;
- // @@protoc_insertion_point(field_set:iv.map.geodata.hdg_start)
- }
- // optional double hdg_end = 15;
- bool geodata::has_hdg_end() const {
- return (_has_bits_[0] & 0x00004000u) != 0;
- }
- void geodata::set_has_hdg_end() {
- _has_bits_[0] |= 0x00004000u;
- }
- void geodata::clear_has_hdg_end() {
- _has_bits_[0] &= ~0x00004000u;
- }
- void geodata::clear_hdg_end() {
- hdg_end_ = 0;
- clear_has_hdg_end();
- }
- double geodata::hdg_end() const {
- // @@protoc_insertion_point(field_get:iv.map.geodata.hdg_end)
- return hdg_end_;
- }
- void geodata::set_hdg_end(double value) {
- set_has_hdg_end();
- hdg_end_ = value;
- // @@protoc_insertion_point(field_set:iv.map.geodata.hdg_end)
- }
- // optional double au = 16;
- bool geodata::has_au() const {
- return (_has_bits_[0] & 0x00008000u) != 0;
- }
- void geodata::set_has_au() {
- _has_bits_[0] |= 0x00008000u;
- }
- void geodata::clear_has_au() {
- _has_bits_[0] &= ~0x00008000u;
- }
- void geodata::clear_au() {
- au_ = 0;
- clear_has_au();
- }
- double geodata::au() const {
- // @@protoc_insertion_point(field_get:iv.map.geodata.au)
- return au_;
- }
- void geodata::set_au(double value) {
- set_has_au();
- au_ = value;
- // @@protoc_insertion_point(field_set:iv.map.geodata.au)
- }
- // optional double bu = 17;
- bool geodata::has_bu() const {
- return (_has_bits_[0] & 0x00010000u) != 0;
- }
- void geodata::set_has_bu() {
- _has_bits_[0] |= 0x00010000u;
- }
- void geodata::clear_has_bu() {
- _has_bits_[0] &= ~0x00010000u;
- }
- void geodata::clear_bu() {
- bu_ = 0;
- clear_has_bu();
- }
- double geodata::bu() const {
- // @@protoc_insertion_point(field_get:iv.map.geodata.bu)
- return bu_;
- }
- void geodata::set_bu(double value) {
- set_has_bu();
- bu_ = value;
- // @@protoc_insertion_point(field_set:iv.map.geodata.bu)
- }
- // optional double cu = 18;
- bool geodata::has_cu() const {
- return (_has_bits_[0] & 0x00020000u) != 0;
- }
- void geodata::set_has_cu() {
- _has_bits_[0] |= 0x00020000u;
- }
- void geodata::clear_has_cu() {
- _has_bits_[0] &= ~0x00020000u;
- }
- void geodata::clear_cu() {
- cu_ = 0;
- clear_has_cu();
- }
- double geodata::cu() const {
- // @@protoc_insertion_point(field_get:iv.map.geodata.cu)
- return cu_;
- }
- void geodata::set_cu(double value) {
- set_has_cu();
- cu_ = value;
- // @@protoc_insertion_point(field_set:iv.map.geodata.cu)
- }
- // optional double du = 19;
- bool geodata::has_du() const {
- return (_has_bits_[0] & 0x00040000u) != 0;
- }
- void geodata::set_has_du() {
- _has_bits_[0] |= 0x00040000u;
- }
- void geodata::clear_has_du() {
- _has_bits_[0] &= ~0x00040000u;
- }
- void geodata::clear_du() {
- du_ = 0;
- clear_has_du();
- }
- double geodata::du() const {
- // @@protoc_insertion_point(field_get:iv.map.geodata.du)
- return du_;
- }
- void geodata::set_du(double value) {
- set_has_du();
- du_ = value;
- // @@protoc_insertion_point(field_set:iv.map.geodata.du)
- }
- // optional double av = 20;
- bool geodata::has_av() const {
- return (_has_bits_[0] & 0x00080000u) != 0;
- }
- void geodata::set_has_av() {
- _has_bits_[0] |= 0x00080000u;
- }
- void geodata::clear_has_av() {
- _has_bits_[0] &= ~0x00080000u;
- }
- void geodata::clear_av() {
- av_ = 0;
- clear_has_av();
- }
- double geodata::av() const {
- // @@protoc_insertion_point(field_get:iv.map.geodata.av)
- return av_;
- }
- void geodata::set_av(double value) {
- set_has_av();
- av_ = value;
- // @@protoc_insertion_point(field_set:iv.map.geodata.av)
- }
- // optional double bv = 21;
- bool geodata::has_bv() const {
- return (_has_bits_[0] & 0x00100000u) != 0;
- }
- void geodata::set_has_bv() {
- _has_bits_[0] |= 0x00100000u;
- }
- void geodata::clear_has_bv() {
- _has_bits_[0] &= ~0x00100000u;
- }
- void geodata::clear_bv() {
- bv_ = 0;
- clear_has_bv();
- }
- double geodata::bv() const {
- // @@protoc_insertion_point(field_get:iv.map.geodata.bv)
- return bv_;
- }
- void geodata::set_bv(double value) {
- set_has_bv();
- bv_ = value;
- // @@protoc_insertion_point(field_set:iv.map.geodata.bv)
- }
- // optional double cv = 22;
- bool geodata::has_cv() const {
- return (_has_bits_[0] & 0x00200000u) != 0;
- }
- void geodata::set_has_cv() {
- _has_bits_[0] |= 0x00200000u;
- }
- void geodata::clear_has_cv() {
- _has_bits_[0] &= ~0x00200000u;
- }
- void geodata::clear_cv() {
- cv_ = 0;
- clear_has_cv();
- }
- double geodata::cv() const {
- // @@protoc_insertion_point(field_get:iv.map.geodata.cv)
- return cv_;
- }
- void geodata::set_cv(double value) {
- set_has_cv();
- cv_ = value;
- // @@protoc_insertion_point(field_set:iv.map.geodata.cv)
- }
- // optional double dv = 23;
- bool geodata::has_dv() const {
- return (_has_bits_[0] & 0x00400000u) != 0;
- }
- void geodata::set_has_dv() {
- _has_bits_[0] |= 0x00400000u;
- }
- void geodata::clear_has_dv() {
- _has_bits_[0] &= ~0x00400000u;
- }
- void geodata::clear_dv() {
- dv_ = 0;
- clear_has_dv();
- }
- double geodata::dv() const {
- // @@protoc_insertion_point(field_get:iv.map.geodata.dv)
- return dv_;
- }
- void geodata::set_dv(double value) {
- set_has_dv();
- dv_ = value;
- // @@protoc_insertion_point(field_set:iv.map.geodata.dv)
- }
- // optional double polyuratio = 24;
- bool geodata::has_polyuratio() const {
- return (_has_bits_[0] & 0x00800000u) != 0;
- }
- void geodata::set_has_polyuratio() {
- _has_bits_[0] |= 0x00800000u;
- }
- void geodata::clear_has_polyuratio() {
- _has_bits_[0] &= ~0x00800000u;
- }
- void geodata::clear_polyuratio() {
- polyuratio_ = 0;
- clear_has_polyuratio();
- }
- double geodata::polyuratio() const {
- // @@protoc_insertion_point(field_get:iv.map.geodata.polyuratio)
- return polyuratio_;
- }
- void geodata::set_polyuratio(double value) {
- set_has_polyuratio();
- polyuratio_ = value;
- // @@protoc_insertion_point(field_set:iv.map.geodata.polyuratio)
- }
- // optional double polyvratio = 25;
- bool geodata::has_polyvratio() const {
- return (_has_bits_[0] & 0x01000000u) != 0;
- }
- void geodata::set_has_polyvratio() {
- _has_bits_[0] |= 0x01000000u;
- }
- void geodata::clear_has_polyvratio() {
- _has_bits_[0] &= ~0x01000000u;
- }
- void geodata::clear_polyvratio() {
- polyvratio_ = 0;
- clear_has_polyvratio();
- }
- double geodata::polyvratio() const {
- // @@protoc_insertion_point(field_get:iv.map.geodata.polyvratio)
- return polyvratio_;
- }
- void geodata::set_polyvratio(double value) {
- set_has_polyvratio();
- polyvratio_ = value;
- // @@protoc_insertion_point(field_set:iv.map.geodata.polyvratio)
- }
- #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
- // @@protoc_insertion_point(namespace_scope)
- } // namespace map
- } // namespace iv
- // @@protoc_insertion_point(global_scope)
|