| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175 |
- /*
- * Copyright (C) 2007-2010 Siemens AG
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published
- * by the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
- /*******************************************************************
- *
- * @author Daniel.Peintner.EXT@siemens.com
- * @version 0.2
- * @contact Joerg.Heuer@siemens.com
- *
- * <p>NOTE: Code generated by EXIdizer v0.1</p>
- ********************************************************************/
- #ifndef EXI_DECODER_C
- #define EXI_DECODER_C
- #include <stdio.h>
- #include <stdint.h>
- #include <string.h>
- #include <stdlib.h>
- #include "EXITypes.h"
- #include "BitInputStream.h"
- #include "BitDecoderChannel.h"
- #include "EXICoder.h"
- #include "EXIHeaderDecoder.h"
- #include "StringTable.h"
- int exiInitDecoder(bitstream_t* stream, exi_state_t* state) {
- /* init grammar state */
- state->stackIndex = 0;
- state->grammarStack[0] = 0;
- /* decode header */
- return readEXIHeader(stream);
- }
- int exiDecodeNextEvent(bitstream_t* stream, exi_state_t* state,
- exi_event_t* nextEvent) {
- switch (state->grammarStack[state->stackIndex]) {
- case 0:
- /* Document[START_DOCUMENT] */
- *nextEvent = START_DOCUMENT;
- return 0;
- case 1:
- /* DocContent[START_ELEMENT({urn:iso:15118:2:2010:MsgDef}BodyElement), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}LineLockReq), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}LineLockRes), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}MeteringReceiptReq), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}MeteringReceiptRes), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}MeteringStatusReq), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}MeteringStatusRes), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PaymentDetailsReq), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PaymentDetailsRes), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PowerDeliveryReq), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PowerDeliveryRes), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PowerDiscoveryReq), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PowerDiscoveryRes), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ServiceDiscoveryReq), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ServiceDiscoveryRes), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ServicePaymentSelectionReq), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ServicePaymentSelectionRes), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}SessionSetupReq), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}SessionSetupRes), START_ELEMENT({urn:iso:15118:2:2010:MsgDef}V2G_Message), START_ELEMENT_GENERIC] */
- decodeNBitUnsignedInteger(stream, 5, &state->eventCode);
- if (state->eventCode == 0) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 1) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 2) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 3) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 4) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 5) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 6) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 7) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 8) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 9) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 10) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 11) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 12) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 13) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 14) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 15) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 16) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 17) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 18) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 19) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 20) {
- *nextEvent = START_ELEMENT_GENERIC;
- return 0;
- }
- case 2:
- /* DocEnd[END_DOCUMENT] */
- *nextEvent = END_DOCUMENT;
- return 0;
- case 3:
- /* FirstStartTag(xsi:type)StartTag[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 5:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PEVStatus)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 24:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ReqLockStatus)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 26:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 25:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}ConnectorLocked)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 28:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}ChargerStandby)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 29:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 27:
- /* FirstStartTagStartTag[CHARACTERS[BOOLEAN]] */
- *nextEvent = CHARACTERS;
- return 0;
- case 31:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 30:
- /* FirstStartTagStartTag[CHARACTERS[BOOLEAN]] */
- *nextEvent = CHARACTERS;
- return 0;
- case 32:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 6:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ResponseCode)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 33:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}EVSEStatus)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 35:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 34:
- /* FirstStartTagStartTag[CHARACTERS[ENUMERATION]] */
- *nextEvent = CHARACTERS;
- return 0;
- case 37:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 36:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}FatalError)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 38:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}EVSEStandby)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 40:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}ConnectorLocked)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 41:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}PowerSwitchClosed)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 42:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}RCD)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 44:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}ShutDownTime)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 46:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 39:
- /* FirstStartTagStartTag[CHARACTERS[BOOLEAN]] */
- *nextEvent = CHARACTERS;
- return 0;
- case 48:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 43:
- /* FirstStartTagStartTag[CHARACTERS[BOOLEAN]] */
- *nextEvent = CHARACTERS;
- return 0;
- case 49:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 45:
- /* FirstStartTagStartTag[CHARACTERS[BOOLEAN]] */
- *nextEvent = CHARACTERS;
- return 0;
- case 50:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 47:
- /* FirstStartTagStartTag[CHARACTERS[INTEGER_64]] */
- *nextEvent = CHARACTERS;
- return 0;
- case 51:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 7:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PEVID), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PEVStatus)] */
- decodeNBitUnsignedInteger(stream, 1, &state->eventCode);
- if (state->eventCode == 0) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 1) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- case 52:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PEVStatus)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 54:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}TCurrent), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}Tariff)] */
- decodeNBitUnsignedInteger(stream, 1, &state->eventCode);
- if (state->eventCode == 0) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 1) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- case 55:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}Tariff)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 56:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}MeterInfo)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 58:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 53:
- /* FirstStartTagStartTag[CHARACTERS[STRING]] */
- *nextEvent = CHARACTERS;
- return 0;
- case 60:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 57:
- /* FirstStartTagStartTag[CHARACTERS[ENUMERATION]] */
- *nextEvent = CHARACTERS;
- return 0;
- case 61:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 59:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}MeterID), START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}MeterPubKey), START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}MeterReading), START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}MeterStatus), START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}TMeter), END_ELEMENT] */
- decodeNBitUnsignedInteger(stream, 3, &state->eventCode);
- if (state->eventCode == 0) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 1) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 2) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 3) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 4) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 5) {
- *nextEvent = END_ELEMENT;
- return 0;
- }
- case 62:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}MeterPubKey), START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}MeterReading), START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}MeterStatus), START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}TMeter), END_ELEMENT] */
- decodeNBitUnsignedInteger(stream, 3, &state->eventCode);
- if (state->eventCode == 0) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 1) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 2) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 3) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 4) {
- *nextEvent = END_ELEMENT;
- return 0;
- }
- case 64:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}MeterReading), START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}MeterStatus), START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}TMeter), END_ELEMENT] */
- decodeNBitUnsignedInteger(stream, 2, &state->eventCode);
- if (state->eventCode == 0) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 1) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 2) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 3) {
- *nextEvent = END_ELEMENT;
- return 0;
- }
- case 66:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}MeterStatus), START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}TMeter), END_ELEMENT] */
- decodeNBitUnsignedInteger(stream, 2, &state->eventCode);
- if (state->eventCode == 0) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 1) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 2) {
- *nextEvent = END_ELEMENT;
- return 0;
- }
- case 68:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}TMeter), END_ELEMENT] */
- decodeNBitUnsignedInteger(stream, 1, &state->eventCode);
- if (state->eventCode == 0) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 1) {
- *nextEvent = END_ELEMENT;
- return 0;
- }
- case 70:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 63:
- /* FirstStartTagStartTag[CHARACTERS[STRING]] */
- *nextEvent = CHARACTERS;
- return 0;
- case 71:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 65:
- /* FirstStartTagStartTag[CHARACTERS[BINARY_HEX]] */
- *nextEvent = CHARACTERS;
- return 0;
- case 72:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 67:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}Multiplier)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 73:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}Unit)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 75:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}Value)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 76:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 74:
- /* FirstStartTagStartTag[CHARACTERS[ENUMERATION]] */
- *nextEvent = CHARACTERS;
- return 0;
- case 78:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 77:
- /* FirstStartTag(xsi:type)StartTag[CHARACTERS[INTEGER_64]] */
- *nextEvent = CHARACTERS;
- return 0;
- case 79:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 69:
- /* FirstStartTagStartTag[CHARACTERS[INTEGER_16]] */
- *nextEvent = CHARACTERS;
- return 0;
- case 80:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 8:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ResponseCode)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 81:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 82:
- /* FirstStartTagStartTag[CHARACTERS[ENUMERATION]] */
- *nextEvent = CHARACTERS;
- return 0;
- case 83:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 9:
- /* FirstStartTagStartTag[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 10:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ResponseCode)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 84:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}EVSEID)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 86:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}EVSEStatus)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 88:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}TCurrent)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 89:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}EVSEMaxPower)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 90:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PCurrent), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}MeterInfo), END_ELEMENT] */
- decodeNBitUnsignedInteger(stream, 2, &state->eventCode);
- if (state->eventCode == 0) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 1) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 2) {
- *nextEvent = END_ELEMENT;
- return 0;
- }
- case 91:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}MeterInfo), END_ELEMENT] */
- decodeNBitUnsignedInteger(stream, 1, &state->eventCode);
- if (state->eventCode == 0) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 1) {
- *nextEvent = END_ELEMENT;
- return 0;
- }
- case 92:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 85:
- /* FirstStartTagStartTag[CHARACTERS[ENUMERATION]] */
- *nextEvent = CHARACTERS;
- return 0;
- case 93:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 87:
- /* FirstStartTagStartTag[CHARACTERS[BINARY_HEX]] */
- *nextEvent = CHARACTERS;
- return 0;
- case 94:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 11:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ContractID)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 95:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 96:
- /* FirstStartTagStartTag[CHARACTERS[STRING]] */
- *nextEvent = CHARACTERS;
- return 0;
- case 97:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 12:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ResponseCode)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 98:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 99:
- /* FirstStartTagStartTag[CHARACTERS[ENUMERATION]] */
- *nextEvent = CHARACTERS;
- return 0;
- case 100:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 13:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PEVStatus)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 101:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ReqSwitchStatus)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 102:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}Tariff), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ChargingProfile), END_ELEMENT] */
- decodeNBitUnsignedInteger(stream, 2, &state->eventCode);
- if (state->eventCode == 0) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 1) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 2) {
- *nextEvent = END_ELEMENT;
- return 0;
- }
- case 103:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ChargingProfile), END_ELEMENT] */
- decodeNBitUnsignedInteger(stream, 1, &state->eventCode);
- if (state->eventCode == 0) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 1) {
- *nextEvent = END_ELEMENT;
- return 0;
- }
- case 104:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 105:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}ChargingProfileEntryStart)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 106:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}ChargingProfileEntryMaxPower)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 107:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 14:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ResponseCode)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 108:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 109:
- /* FirstStartTagStartTag[CHARACTERS[ENUMERATION]] */
- *nextEvent = CHARACTERS;
- return 0;
- case 110:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 15:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PEVStatus)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 111:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}EoC)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 112:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}EAmount)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 113:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PEVMaxPower)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 114:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PEVMaxPhases)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 115:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PEVMaxVoltage)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 117:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PEVMinVoltage)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 118:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 116:
- /* FirstStartTagStartTag[CHARACTERS[INTEGER_16]] */
- *nextEvent = CHARACTERS;
- return 0;
- case 119:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 16:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ResponseCode)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 120:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}EVSEStatus)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 122:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}EVSEVoltage)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 123:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}EVSEIMax)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 124:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}EVSEMaxPhases)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 125:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}EnergyProvider), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}TariffTable), END_ELEMENT] */
- decodeNBitUnsignedInteger(stream, 2, &state->eventCode);
- if (state->eventCode == 0) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 1) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 2) {
- *nextEvent = END_ELEMENT;
- return 0;
- }
- case 126:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}TariffTable), END_ELEMENT] */
- decodeNBitUnsignedInteger(stream, 1, &state->eventCode);
- if (state->eventCode == 0) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 1) {
- *nextEvent = END_ELEMENT;
- return 0;
- }
- case 128:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 121:
- /* FirstStartTagStartTag[CHARACTERS[ENUMERATION]] */
- *nextEvent = CHARACTERS;
- return 0;
- case 130:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 127:
- /* FirstStartTagStartTag[CHARACTERS[STRING]] */
- *nextEvent = CHARACTERS;
- return 0;
- case 131:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 129:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}Currency)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 132:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}Tariff)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 134:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}Tariff), END_ELEMENT] */
- decodeNBitUnsignedInteger(stream, 1, &state->eventCode);
- if (state->eventCode == 0) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 1) {
- *nextEvent = END_ELEMENT;
- return 0;
- }
- case 133:
- /* FirstStartTagStartTag[CHARACTERS[STRING]] */
- *nextEvent = CHARACTERS;
- return 0;
- case 136:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 135:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}TariffID)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 137:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}TariffDescription), START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}TariffEntries)] */
- decodeNBitUnsignedInteger(stream, 1, &state->eventCode);
- if (state->eventCode == 0) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 1) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- case 138:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}TariffEntries)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 140:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 139:
- /* FirstStartTagStartTag[CHARACTERS[STRING]] */
- *nextEvent = CHARACTERS;
- return 0;
- case 142:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 141:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}TariffEntry)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 143:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}TariffEntry), END_ELEMENT] */
- decodeNBitUnsignedInteger(stream, 1, &state->eventCode);
- if (state->eventCode == 0) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 1) {
- *nextEvent = END_ELEMENT;
- return 0;
- }
- case 144:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}TariffStart)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 145:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}TariffPMax)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 147:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}EPrice), END_ELEMENT] */
- decodeNBitUnsignedInteger(stream, 1, &state->eventCode);
- if (state->eventCode == 0) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 1) {
- *nextEvent = END_ELEMENT;
- return 0;
- }
- case 148:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 146:
- /* FirstStartTagStartTag[CHARACTERS[UNSIGNED_INTEGER_32]] */
- *nextEvent = CHARACTERS;
- return 0;
- case 149:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 17:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ServiceType), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ServiceScope), END_ELEMENT] */
- decodeNBitUnsignedInteger(stream, 2, &state->eventCode);
- if (state->eventCode == 0) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 1) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 2) {
- *nextEvent = END_ELEMENT;
- return 0;
- }
- case 150:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ServiceScope), END_ELEMENT] */
- decodeNBitUnsignedInteger(stream, 1, &state->eventCode);
- if (state->eventCode == 0) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 1) {
- *nextEvent = END_ELEMENT;
- return 0;
- }
- case 152:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 151:
- /* FirstStartTagStartTag[CHARACTERS[ENUMERATION]] */
- *nextEvent = CHARACTERS;
- return 0;
- case 154:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 153:
- /* FirstStartTagStartTag[CHARACTERS[STRING]] */
- *nextEvent = CHARACTERS;
- return 0;
- case 155:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 18:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ResponseCode)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 156:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ServiceList), END_ELEMENT] */
- decodeNBitUnsignedInteger(stream, 1, &state->eventCode);
- if (state->eventCode == 0) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 1) {
- *nextEvent = END_ELEMENT;
- return 0;
- }
- case 158:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 157:
- /* FirstStartTagStartTag[CHARACTERS[ENUMERATION]] */
- *nextEvent = CHARACTERS;
- return 0;
- case 160:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 159:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}Service)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 161:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}Service), END_ELEMENT] */
- decodeNBitUnsignedInteger(stream, 1, &state->eventCode);
- if (state->eventCode == 0) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 1) {
- *nextEvent = END_ELEMENT;
- return 0;
- }
- case 162:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}ServiceID)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 163:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}ServiceName), START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}ServiceType), START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}ServiceScope), END_ELEMENT] */
- decodeNBitUnsignedInteger(stream, 2, &state->eventCode);
- if (state->eventCode == 0) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 1) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 2) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 3) {
- *nextEvent = END_ELEMENT;
- return 0;
- }
- case 165:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}ServiceType), START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}ServiceScope), END_ELEMENT] */
- decodeNBitUnsignedInteger(stream, 2, &state->eventCode);
- if (state->eventCode == 0) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 1) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 2) {
- *nextEvent = END_ELEMENT;
- return 0;
- }
- case 167:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}ServiceScope), END_ELEMENT] */
- decodeNBitUnsignedInteger(stream, 1, &state->eventCode);
- if (state->eventCode == 0) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 1) {
- *nextEvent = END_ELEMENT;
- return 0;
- }
- case 168:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 164:
- /* FirstStartTagStartTag[CHARACTERS[BINARY_HEX]] */
- *nextEvent = CHARACTERS;
- return 0;
- case 169:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 166:
- /* FirstStartTagStartTag[CHARACTERS[STRING]] */
- *nextEvent = CHARACTERS;
- return 0;
- case 170:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 19:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ServiceList)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 171:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PEVPubKey)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 172:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 20:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ResponseCode)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 173:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}MeteringAuthPubKey), END_ELEMENT] */
- decodeNBitUnsignedInteger(stream, 1, &state->eventCode);
- if (state->eventCode == 0) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 1) {
- *nextEvent = END_ELEMENT;
- return 0;
- }
- case 175:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 174:
- /* FirstStartTagStartTag[CHARACTERS[ENUMERATION]] */
- *nextEvent = CHARACTERS;
- return 0;
- case 176:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 21:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PEVID), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PEVStatus)] */
- decodeNBitUnsignedInteger(stream, 1, &state->eventCode);
- if (state->eventCode == 0) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 1) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- case 177:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PEVStatus)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 178:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 22:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ResponseCode)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 179:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}EVSEID)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 181:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}EVSEStatus)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 182:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}TCurrent)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 183:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 180:
- /* FirstStartTagStartTag[CHARACTERS[ENUMERATION]] */
- *nextEvent = CHARACTERS;
- return 0;
- case 184:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 23:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgDef}Header)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 185:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDef}Body)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 187:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 186:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgDef}SessionInformation)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 189:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDef}Notification), END_ELEMENT] */
- decodeNBitUnsignedInteger(stream, 1, &state->eventCode);
- if (state->eventCode == 0) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 1) {
- *nextEvent = END_ELEMENT;
- return 0;
- }
- case 191:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 190:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}SessionID)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 193:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}ServiceSessionID), START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}ProtocolVersion), END_ELEMENT] */
- decodeNBitUnsignedInteger(stream, 2, &state->eventCode);
- if (state->eventCode == 0) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 1) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 2) {
- *nextEvent = END_ELEMENT;
- return 0;
- }
- case 195:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}ProtocolVersion), END_ELEMENT] */
- decodeNBitUnsignedInteger(stream, 1, &state->eventCode);
- if (state->eventCode == 0) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 1) {
- *nextEvent = END_ELEMENT;
- return 0;
- }
- case 196:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 194:
- /* FirstStartTagStartTag[CHARACTERS[BINARY_HEX]] */
- *nextEvent = CHARACTERS;
- return 0;
- case 198:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 197:
- /* FirstStartTagStartTag[CHARACTERS[STRING]] */
- *nextEvent = CHARACTERS;
- return 0;
- case 199:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 192:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}FaultCode), START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}FaultMsg), START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}EventList), END_ELEMENT] */
- decodeNBitUnsignedInteger(stream, 2, &state->eventCode);
- if (state->eventCode == 0) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 1) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 2) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 3) {
- *nextEvent = END_ELEMENT;
- return 0;
- }
- case 200:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}FaultMsg), START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}EventList), END_ELEMENT] */
- decodeNBitUnsignedInteger(stream, 2, &state->eventCode);
- if (state->eventCode == 0) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 1) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 2) {
- *nextEvent = END_ELEMENT;
- return 0;
- }
- case 202:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}EventList), END_ELEMENT] */
- decodeNBitUnsignedInteger(stream, 1, &state->eventCode);
- if (state->eventCode == 0) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 1) {
- *nextEvent = END_ELEMENT;
- return 0;
- }
- case 204:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 201:
- /* FirstStartTagStartTag[CHARACTERS[ENUMERATION]] */
- *nextEvent = CHARACTERS;
- return 0;
- case 206:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 203:
- /* FirstStartTag(xsi:type)StartTag[CHARACTERS[STRING]] */
- *nextEvent = CHARACTERS;
- return 0;
- case 207:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 205:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}Event)] */
- *nextEvent = START_ELEMENT;
- return 0;
- case 208:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 209:
- /* FirstStartTagStartTag[CHARACTERS[ENUMERATION]] */
- *nextEvent = CHARACTERS;
- return 0;
- case 210:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- case 188:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgDef}BodyElement), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}LineLockReq), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}LineLockRes), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}MeteringReceiptReq), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}MeteringReceiptRes), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}MeteringStatusReq), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}MeteringStatusRes), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PaymentDetailsReq), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PaymentDetailsRes), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PowerDeliveryReq), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PowerDeliveryRes), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PowerDiscoveryReq), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PowerDiscoveryRes), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ServiceDiscoveryReq), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ServiceDiscoveryRes), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ServicePaymentSelectionReq), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ServicePaymentSelectionRes), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}SessionSetupReq), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}SessionSetupRes), END_ELEMENT] */
- decodeNBitUnsignedInteger(stream, 5, &state->eventCode);
- if (state->eventCode == 0) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 1) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 2) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 3) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 4) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 5) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 6) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 7) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 8) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 9) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 10) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 11) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 12) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 13) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 14) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 15) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 16) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 17) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 18) {
- *nextEvent = START_ELEMENT;
- return 0;
- }
- else if (state->eventCode == 19) {
- *nextEvent = END_ELEMENT;
- return 0;
- }
- case 211:
- /* Element[END_ELEMENT] */
- *nextEvent = END_ELEMENT;
- return 0;
- default:
- *nextEvent = ERROR;
- return -1;
- }
- return -1;
- }
- int exiDecodeStartDocument(bitstream_t* stream, exi_state_t* state) {
- if ( state->grammarStack[state->stackIndex] == 0 ) {
- /* move on */
- state->grammarStack[state->stackIndex] = 1;
- return 0;
- }
- return -1;
- }
- int exiDecodeEndDocument(bitstream_t* stream, exi_state_t* state) {
- if ( state->grammarStack[state->stackIndex] == 2) {
- return 0;
- }
- return -1;
- }
- int exiDecodeStartElement(bitstream_t* stream, exi_state_t* state,
- eqname_t* se) {
- switch (state->grammarStack[state->stackIndex]) {
- case 1:
- /* DocContent[START_ELEMENT({urn:iso:15118:2:2010:MsgDef}BodyElement), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}LineLockReq), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}LineLockRes), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}MeteringReceiptReq), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}MeteringReceiptRes), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}MeteringStatusReq), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}MeteringStatusRes), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PaymentDetailsReq), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PaymentDetailsRes), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PowerDeliveryReq), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PowerDeliveryRes), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PowerDiscoveryReq), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PowerDiscoveryRes), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ServiceDiscoveryReq), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ServiceDiscoveryRes), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ServicePaymentSelectionReq), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ServicePaymentSelectionRes), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}SessionSetupReq), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}SessionSetupRes), START_ELEMENT({urn:iso:15118:2:2010:MsgDef}V2G_Message), START_ELEMENT_GENERIC] */
- if (state->eventCode == 0) {
- se->localPart = 2; /* "BodyElement" */
- se->namespaceURI = 6; /* "urn:iso:15118:2:2010:MsgDef" */
- /* move on */
- state->grammarStack[state->stackIndex] = 2;
- /* push element on stack */
- return exiPushStack(state, 3, se);
- }
- else if (state->eventCode == 1) {
- se->localPart = 11; /* "LineLockReq" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 2;
- /* push element on stack */
- return exiPushStack(state, 5, se);
- }
- else if (state->eventCode == 2) {
- se->localPart = 13; /* "LineLockRes" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 2;
- /* push element on stack */
- return exiPushStack(state, 6, se);
- }
- else if (state->eventCode == 3) {
- se->localPart = 17; /* "MeteringReceiptReq" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 2;
- /* push element on stack */
- return exiPushStack(state, 7, se);
- }
- else if (state->eventCode == 4) {
- se->localPart = 19; /* "MeteringReceiptRes" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 2;
- /* push element on stack */
- return exiPushStack(state, 8, se);
- }
- else if (state->eventCode == 5) {
- se->localPart = 21; /* "MeteringStatusReq" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 2;
- /* push element on stack */
- return exiPushStack(state, 9, se);
- }
- else if (state->eventCode == 6) {
- se->localPart = 23; /* "MeteringStatusRes" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 2;
- /* push element on stack */
- return exiPushStack(state, 10, se);
- }
- else if (state->eventCode == 7) {
- se->localPart = 33; /* "PaymentDetailsReq" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 2;
- /* push element on stack */
- return exiPushStack(state, 11, se);
- }
- else if (state->eventCode == 8) {
- se->localPart = 35; /* "PaymentDetailsRes" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 2;
- /* push element on stack */
- return exiPushStack(state, 12, se);
- }
- else if (state->eventCode == 9) {
- se->localPart = 37; /* "PowerDeliveryReq" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 2;
- /* push element on stack */
- return exiPushStack(state, 13, se);
- }
- else if (state->eventCode == 10) {
- se->localPart = 39; /* "PowerDeliveryRes" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 2;
- /* push element on stack */
- return exiPushStack(state, 14, se);
- }
- else if (state->eventCode == 11) {
- se->localPart = 41; /* "PowerDiscoveryReq" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 2;
- /* push element on stack */
- return exiPushStack(state, 15, se);
- }
- else if (state->eventCode == 12) {
- se->localPart = 43; /* "PowerDiscoveryRes" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 2;
- /* push element on stack */
- return exiPushStack(state, 16, se);
- }
- else if (state->eventCode == 13) {
- se->localPart = 48; /* "ServiceDiscoveryReq" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 2;
- /* push element on stack */
- return exiPushStack(state, 17, se);
- }
- else if (state->eventCode == 14) {
- se->localPart = 50; /* "ServiceDiscoveryRes" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 2;
- /* push element on stack */
- return exiPushStack(state, 18, se);
- }
- else if (state->eventCode == 15) {
- se->localPart = 53; /* "ServicePaymentSelectionReq" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 2;
- /* push element on stack */
- return exiPushStack(state, 19, se);
- }
- else if (state->eventCode == 16) {
- se->localPart = 55; /* "ServicePaymentSelectionRes" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 2;
- /* push element on stack */
- return exiPushStack(state, 20, se);
- }
- else if (state->eventCode == 17) {
- se->localPart = 59; /* "SessionSetupReq" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 2;
- /* push element on stack */
- return exiPushStack(state, 21, se);
- }
- else if (state->eventCode == 18) {
- se->localPart = 61; /* "SessionSetupRes" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 2;
- /* push element on stack */
- return exiPushStack(state, 22, se);
- }
- else if (state->eventCode == 19) {
- se->localPart = 8; /* "V2G_Message" */
- se->namespaceURI = 6; /* "urn:iso:15118:2:2010:MsgDef" */
- /* move on */
- state->grammarStack[state->stackIndex] = 2;
- /* push element on stack */
- return exiPushStack(state, 23, se);
- }
- break;
- case 5:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PEVStatus)] */
- se->localPart = 32; /* "PEVStatus" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 24;
- /* push element on stack */
- return exiPushStack(state, 25, se);
- break;
- case 6:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ResponseCode)] */
- se->localPart = 47; /* "ResponseCode" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 33;
- /* push element on stack */
- return exiPushStack(state, 34, se);
- break;
- case 7:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PEVID), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PEVStatus)] */
- if (state->eventCode == 0) {
- se->localPart = 26; /* "PEVID" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 52;
- /* push element on stack */
- return exiPushStack(state, 53, se);
- }
- else if (state->eventCode == 1) {
- se->localPart = 32; /* "PEVStatus" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 54;
- /* push element on stack */
- return exiPushStack(state, 25, se);
- }
- break;
- case 8:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ResponseCode)] */
- se->localPart = 47; /* "ResponseCode" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 81;
- /* push element on stack */
- return exiPushStack(state, 82, se);
- break;
- case 10:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ResponseCode)] */
- se->localPart = 47; /* "ResponseCode" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 84;
- /* push element on stack */
- return exiPushStack(state, 85, se);
- break;
- case 11:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ContractID)] */
- se->localPart = 1; /* "ContractID" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 95;
- /* push element on stack */
- return exiPushStack(state, 96, se);
- break;
- case 12:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ResponseCode)] */
- se->localPart = 47; /* "ResponseCode" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 98;
- /* push element on stack */
- return exiPushStack(state, 99, se);
- break;
- case 13:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PEVStatus)] */
- se->localPart = 32; /* "PEVStatus" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 101;
- /* push element on stack */
- return exiPushStack(state, 25, se);
- break;
- case 14:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ResponseCode)] */
- se->localPart = 47; /* "ResponseCode" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 108;
- /* push element on stack */
- return exiPushStack(state, 109, se);
- break;
- case 15:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PEVStatus)] */
- se->localPart = 32; /* "PEVStatus" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 111;
- /* push element on stack */
- return exiPushStack(state, 25, se);
- break;
- case 16:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ResponseCode)] */
- se->localPart = 47; /* "ResponseCode" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 120;
- /* push element on stack */
- return exiPushStack(state, 121, se);
- break;
- case 17:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ServiceType), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ServiceScope), END_ELEMENT] */
- if (state->eventCode == 0) {
- se->localPart = 58; /* "ServiceType" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 150;
- /* push element on stack */
- return exiPushStack(state, 151, se);
- }
- else if (state->eventCode == 1) {
- se->localPart = 57; /* "ServiceScope" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 152;
- /* push element on stack */
- return exiPushStack(state, 153, se);
- }
- break;
- case 18:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ResponseCode)] */
- se->localPart = 47; /* "ResponseCode" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 156;
- /* push element on stack */
- return exiPushStack(state, 157, se);
- break;
- case 19:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ServiceList)] */
- se->localPart = 52; /* "ServiceList" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 171;
- /* push element on stack */
- return exiPushStack(state, 159, se);
- break;
- case 20:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ResponseCode)] */
- se->localPart = 47; /* "ResponseCode" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 173;
- /* push element on stack */
- return exiPushStack(state, 174, se);
- break;
- case 21:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PEVID), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PEVStatus)] */
- if (state->eventCode == 0) {
- se->localPart = 26; /* "PEVID" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 177;
- /* push element on stack */
- return exiPushStack(state, 53, se);
- }
- else if (state->eventCode == 1) {
- se->localPart = 32; /* "PEVStatus" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 178;
- /* push element on stack */
- return exiPushStack(state, 25, se);
- }
- break;
- case 22:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ResponseCode)] */
- se->localPart = 47; /* "ResponseCode" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 179;
- /* push element on stack */
- return exiPushStack(state, 180, se);
- break;
- case 23:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgDef}Header)] */
- se->localPart = 4; /* "Header" */
- se->namespaceURI = 6; /* "urn:iso:15118:2:2010:MsgDef" */
- /* move on */
- state->grammarStack[state->stackIndex] = 185;
- /* push element on stack */
- return exiPushStack(state, 186, se);
- break;
- case 24:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ReqLockStatus)] */
- se->localPart = 45; /* "ReqLockStatus" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 26;
- /* push element on stack */
- return exiPushStack(state, 27, se);
- break;
- case 25:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}ConnectorLocked)] */
- se->localPart = 4; /* "ConnectorLocked" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 28;
- /* push element on stack */
- return exiPushStack(state, 27, se);
- break;
- case 28:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}ChargerStandby)] */
- se->localPart = 0; /* "ChargerStandby" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 29;
- /* push element on stack */
- return exiPushStack(state, 30, se);
- break;
- case 33:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}EVSEStatus)] */
- se->localPart = 7; /* "EVSEStatus" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 35;
- /* push element on stack */
- return exiPushStack(state, 36, se);
- break;
- case 36:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}FatalError)] */
- se->localPart = 12; /* "FatalError" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 38;
- /* push element on stack */
- return exiPushStack(state, 39, se);
- break;
- case 38:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}EVSEStandby)] */
- se->localPart = 7; /* "EVSEStandby" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 40;
- /* push element on stack */
- return exiPushStack(state, 30, se);
- break;
- case 40:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}ConnectorLocked)] */
- se->localPart = 4; /* "ConnectorLocked" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 41;
- /* push element on stack */
- return exiPushStack(state, 27, se);
- break;
- case 41:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}PowerSwitchClosed)] */
- se->localPart = 24; /* "PowerSwitchClosed" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 42;
- /* push element on stack */
- return exiPushStack(state, 43, se);
- break;
- case 42:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}RCD)] */
- se->localPart = 26; /* "RCD" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 44;
- /* push element on stack */
- return exiPushStack(state, 45, se);
- break;
- case 44:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}ShutDownTime)] */
- se->localPart = 37; /* "ShutDownTime" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 46;
- /* push element on stack */
- return exiPushStack(state, 47, se);
- break;
- case 52:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PEVStatus)] */
- se->localPart = 32; /* "PEVStatus" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 54;
- /* push element on stack */
- return exiPushStack(state, 25, se);
- break;
- case 54:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}TCurrent), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}Tariff)] */
- if (state->eventCode == 0) {
- se->localPart = 63; /* "TCurrent" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 55;
- /* push element on stack */
- return exiPushStack(state, 47, se);
- }
- else if (state->eventCode == 1) {
- se->localPart = 64; /* "Tariff" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 56;
- /* push element on stack */
- return exiPushStack(state, 57, se);
- }
- break;
- case 55:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}Tariff)] */
- se->localPart = 64; /* "Tariff" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 56;
- /* push element on stack */
- return exiPushStack(state, 57, se);
- break;
- case 56:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}MeterInfo)] */
- se->localPart = 15; /* "MeterInfo" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 58;
- /* push element on stack */
- return exiPushStack(state, 59, se);
- break;
- case 59:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}MeterID), START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}MeterPubKey), START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}MeterReading), START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}MeterStatus), START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}TMeter), END_ELEMENT] */
- if (state->eventCode == 0) {
- se->localPart = 16; /* "MeterID" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 62;
- /* push element on stack */
- return exiPushStack(state, 63, se);
- }
- else if (state->eventCode == 1) {
- se->localPart = 18; /* "MeterPubKey" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 64;
- /* push element on stack */
- return exiPushStack(state, 65, se);
- }
- else if (state->eventCode == 2) {
- se->localPart = 19; /* "MeterReading" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 66;
- /* push element on stack */
- return exiPushStack(state, 67, se);
- }
- else if (state->eventCode == 3) {
- se->localPart = 20; /* "MeterStatus" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 68;
- /* push element on stack */
- return exiPushStack(state, 69, se);
- }
- else if (state->eventCode == 4) {
- se->localPart = 38; /* "TMeter" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 70;
- /* push element on stack */
- return exiPushStack(state, 47, se);
- }
- break;
- case 62:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}MeterPubKey), START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}MeterReading), START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}MeterStatus), START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}TMeter), END_ELEMENT] */
- if (state->eventCode == 0) {
- se->localPart = 18; /* "MeterPubKey" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 64;
- /* push element on stack */
- return exiPushStack(state, 65, se);
- }
- else if (state->eventCode == 1) {
- se->localPart = 19; /* "MeterReading" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 66;
- /* push element on stack */
- return exiPushStack(state, 67, se);
- }
- else if (state->eventCode == 2) {
- se->localPart = 20; /* "MeterStatus" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 68;
- /* push element on stack */
- return exiPushStack(state, 69, se);
- }
- else if (state->eventCode == 3) {
- se->localPart = 38; /* "TMeter" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 70;
- /* push element on stack */
- return exiPushStack(state, 47, se);
- }
- break;
- case 64:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}MeterReading), START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}MeterStatus), START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}TMeter), END_ELEMENT] */
- if (state->eventCode == 0) {
- se->localPart = 19; /* "MeterReading" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 66;
- /* push element on stack */
- return exiPushStack(state, 67, se);
- }
- else if (state->eventCode == 1) {
- se->localPart = 20; /* "MeterStatus" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 68;
- /* push element on stack */
- return exiPushStack(state, 69, se);
- }
- else if (state->eventCode == 2) {
- se->localPart = 38; /* "TMeter" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 70;
- /* push element on stack */
- return exiPushStack(state, 47, se);
- }
- break;
- case 66:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}MeterStatus), START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}TMeter), END_ELEMENT] */
- if (state->eventCode == 0) {
- se->localPart = 20; /* "MeterStatus" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 68;
- /* push element on stack */
- return exiPushStack(state, 69, se);
- }
- else if (state->eventCode == 1) {
- se->localPart = 38; /* "TMeter" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 70;
- /* push element on stack */
- return exiPushStack(state, 47, se);
- }
- break;
- case 67:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}Multiplier)] */
- se->localPart = 21; /* "Multiplier" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 73;
- /* push element on stack */
- return exiPushStack(state, 74, se);
- break;
- case 68:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}TMeter), END_ELEMENT] */
- if (state->eventCode == 0) {
- se->localPart = 38; /* "TMeter" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 70;
- /* push element on stack */
- return exiPushStack(state, 47, se);
- }
- break;
- case 73:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}Unit)] */
- se->localPart = 50; /* "Unit" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 75;
- /* push element on stack */
- return exiPushStack(state, 74, se);
- break;
- case 75:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}Value)] */
- se->localPart = 51; /* "Value" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 76;
- /* push element on stack */
- return exiPushStack(state, 77, se);
- break;
- case 84:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}EVSEID)] */
- se->localPart = 3; /* "EVSEID" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 86;
- /* push element on stack */
- return exiPushStack(state, 87, se);
- break;
- case 86:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}EVSEStatus)] */
- se->localPart = 7; /* "EVSEStatus" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 88;
- /* push element on stack */
- return exiPushStack(state, 36, se);
- break;
- case 88:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}TCurrent)] */
- se->localPart = 63; /* "TCurrent" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 89;
- /* push element on stack */
- return exiPushStack(state, 47, se);
- break;
- case 89:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}EVSEMaxPower)] */
- se->localPart = 6; /* "EVSEMaxPower" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 90;
- /* push element on stack */
- return exiPushStack(state, 67, se);
- break;
- case 90:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PCurrent), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}MeterInfo), END_ELEMENT] */
- if (state->eventCode == 0) {
- se->localPart = 25; /* "PCurrent" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 91;
- /* push element on stack */
- return exiPushStack(state, 67, se);
- }
- else if (state->eventCode == 1) {
- se->localPart = 15; /* "MeterInfo" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 92;
- /* push element on stack */
- return exiPushStack(state, 59, se);
- }
- break;
- case 91:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}MeterInfo), END_ELEMENT] */
- if (state->eventCode == 0) {
- se->localPart = 15; /* "MeterInfo" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 92;
- /* push element on stack */
- return exiPushStack(state, 59, se);
- }
- break;
- case 101:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ReqSwitchStatus)] */
- se->localPart = 46; /* "ReqSwitchStatus" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 102;
- /* push element on stack */
- return exiPushStack(state, 43, se);
- break;
- case 102:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}Tariff), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ChargingProfile), END_ELEMENT] */
- if (state->eventCode == 0) {
- se->localPart = 64; /* "Tariff" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 103;
- /* push element on stack */
- return exiPushStack(state, 57, se);
- }
- else if (state->eventCode == 1) {
- se->localPart = 0; /* "ChargingProfile" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 104;
- /* push element on stack */
- return exiPushStack(state, 105, se);
- }
- break;
- case 103:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ChargingProfile), END_ELEMENT] */
- if (state->eventCode == 0) {
- se->localPart = 0; /* "ChargingProfile" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 104;
- /* push element on stack */
- return exiPushStack(state, 105, se);
- }
- break;
- case 105:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}ChargingProfileEntryStart)] */
- se->localPart = 2; /* "ChargingProfileEntryStart" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 106;
- /* push element on stack */
- return exiPushStack(state, 47, se);
- break;
- case 106:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}ChargingProfileEntryMaxPower)] */
- se->localPart = 1; /* "ChargingProfileEntryMaxPower" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 107;
- /* push element on stack */
- return exiPushStack(state, 67, se);
- break;
- case 111:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}EoC)] */
- se->localPart = 10; /* "EoC" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 112;
- /* push element on stack */
- return exiPushStack(state, 47, se);
- break;
- case 112:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}EAmount)] */
- se->localPart = 2; /* "EAmount" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 113;
- /* push element on stack */
- return exiPushStack(state, 67, se);
- break;
- case 113:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PEVMaxPower)] */
- se->localPart = 28; /* "PEVMaxPower" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 114;
- /* push element on stack */
- return exiPushStack(state, 67, se);
- break;
- case 114:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PEVMaxPhases)] */
- se->localPart = 27; /* "PEVMaxPhases" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 115;
- /* push element on stack */
- return exiPushStack(state, 116, se);
- break;
- case 115:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PEVMaxVoltage)] */
- se->localPart = 29; /* "PEVMaxVoltage" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 117;
- /* push element on stack */
- return exiPushStack(state, 67, se);
- break;
- case 117:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PEVMinVoltage)] */
- se->localPart = 30; /* "PEVMinVoltage" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 118;
- /* push element on stack */
- return exiPushStack(state, 67, se);
- break;
- case 120:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}EVSEStatus)] */
- se->localPart = 7; /* "EVSEStatus" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 122;
- /* push element on stack */
- return exiPushStack(state, 36, se);
- break;
- case 122:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}EVSEVoltage)] */
- se->localPart = 8; /* "EVSEVoltage" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 123;
- /* push element on stack */
- return exiPushStack(state, 67, se);
- break;
- case 123:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}EVSEIMax)] */
- se->localPart = 4; /* "EVSEIMax" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 124;
- /* push element on stack */
- return exiPushStack(state, 67, se);
- break;
- case 124:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}EVSEMaxPhases)] */
- se->localPart = 5; /* "EVSEMaxPhases" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 125;
- /* push element on stack */
- return exiPushStack(state, 116, se);
- break;
- case 125:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}EnergyProvider), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}TariffTable), END_ELEMENT] */
- if (state->eventCode == 0) {
- se->localPart = 9; /* "EnergyProvider" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 126;
- /* push element on stack */
- return exiPushStack(state, 127, se);
- }
- else if (state->eventCode == 1) {
- se->localPart = 65; /* "TariffTable" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 128;
- /* push element on stack */
- return exiPushStack(state, 129, se);
- }
- break;
- case 126:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}TariffTable), END_ELEMENT] */
- if (state->eventCode == 0) {
- se->localPart = 65; /* "TariffTable" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 128;
- /* push element on stack */
- return exiPushStack(state, 129, se);
- }
- break;
- case 129:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}Currency)] */
- se->localPart = 5; /* "Currency" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 132;
- /* push element on stack */
- return exiPushStack(state, 133, se);
- break;
- case 132:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}Tariff)] */
- se->localPart = 39; /* "Tariff" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 134;
- /* push element on stack */
- return exiPushStack(state, 135, se);
- break;
- case 134:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}Tariff), END_ELEMENT] */
- if (state->eventCode == 0) {
- se->localPart = 39; /* "Tariff" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 134;
- /* push element on stack */
- return exiPushStack(state, 135, se);
- }
- break;
- case 135:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}TariffID)] */
- se->localPart = 46; /* "TariffID" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 137;
- /* push element on stack */
- return exiPushStack(state, 57, se);
- break;
- case 137:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}TariffDescription), START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}TariffEntries)] */
- if (state->eventCode == 0) {
- se->localPart = 41; /* "TariffDescription" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 138;
- /* push element on stack */
- return exiPushStack(state, 139, se);
- }
- else if (state->eventCode == 1) {
- se->localPart = 42; /* "TariffEntries" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 140;
- /* push element on stack */
- return exiPushStack(state, 141, se);
- }
- break;
- case 138:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}TariffEntries)] */
- se->localPart = 42; /* "TariffEntries" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 140;
- /* push element on stack */
- return exiPushStack(state, 141, se);
- break;
- case 141:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}TariffEntry)] */
- se->localPart = 44; /* "TariffEntry" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 143;
- /* push element on stack */
- return exiPushStack(state, 144, se);
- break;
- case 143:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}TariffEntry), END_ELEMENT] */
- if (state->eventCode == 0) {
- se->localPart = 44; /* "TariffEntry" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 143;
- /* push element on stack */
- return exiPushStack(state, 144, se);
- }
- break;
- case 144:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}TariffStart)] */
- se->localPart = 48; /* "TariffStart" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 145;
- /* push element on stack */
- return exiPushStack(state, 146, se);
- break;
- case 145:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}TariffPMax)] */
- se->localPart = 47; /* "TariffPMax" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 147;
- /* push element on stack */
- return exiPushStack(state, 67, se);
- break;
- case 147:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}EPrice), END_ELEMENT] */
- if (state->eventCode == 0) {
- se->localPart = 6; /* "EPrice" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 148;
- /* push element on stack */
- return exiPushStack(state, 67, se);
- }
- break;
- case 150:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ServiceScope), END_ELEMENT] */
- if (state->eventCode == 0) {
- se->localPart = 57; /* "ServiceScope" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 152;
- /* push element on stack */
- return exiPushStack(state, 153, se);
- }
- break;
- case 156:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ServiceList), END_ELEMENT] */
- if (state->eventCode == 0) {
- se->localPart = 52; /* "ServiceList" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 158;
- /* push element on stack */
- return exiPushStack(state, 159, se);
- }
- break;
- case 159:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}Service)] */
- se->localPart = 27; /* "Service" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 161;
- /* push element on stack */
- return exiPushStack(state, 162, se);
- break;
- case 161:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}Service), END_ELEMENT] */
- if (state->eventCode == 0) {
- se->localPart = 27; /* "Service" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 161;
- /* push element on stack */
- return exiPushStack(state, 162, se);
- }
- break;
- case 162:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}ServiceID)] */
- se->localPart = 29; /* "ServiceID" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 163;
- /* push element on stack */
- return exiPushStack(state, 164, se);
- break;
- case 163:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}ServiceName), START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}ServiceType), START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}ServiceScope), END_ELEMENT] */
- if (state->eventCode == 0) {
- se->localPart = 31; /* "ServiceName" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 165;
- /* push element on stack */
- return exiPushStack(state, 166, se);
- }
- else if (state->eventCode == 1) {
- se->localPart = 34; /* "ServiceType" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 167;
- /* push element on stack */
- return exiPushStack(state, 151, se);
- }
- else if (state->eventCode == 2) {
- se->localPart = 32; /* "ServiceScope" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 168;
- /* push element on stack */
- return exiPushStack(state, 153, se);
- }
- break;
- case 165:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}ServiceType), START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}ServiceScope), END_ELEMENT] */
- if (state->eventCode == 0) {
- se->localPart = 34; /* "ServiceType" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 167;
- /* push element on stack */
- return exiPushStack(state, 151, se);
- }
- else if (state->eventCode == 1) {
- se->localPart = 32; /* "ServiceScope" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 168;
- /* push element on stack */
- return exiPushStack(state, 153, se);
- }
- break;
- case 167:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}ServiceScope), END_ELEMENT] */
- if (state->eventCode == 0) {
- se->localPart = 32; /* "ServiceScope" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 168;
- /* push element on stack */
- return exiPushStack(state, 153, se);
- }
- break;
- case 171:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PEVPubKey)] */
- se->localPart = 31; /* "PEVPubKey" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 172;
- /* push element on stack */
- return exiPushStack(state, 65, se);
- break;
- case 173:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}MeteringAuthPubKey), END_ELEMENT] */
- if (state->eventCode == 0) {
- se->localPart = 16; /* "MeteringAuthPubKey" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 175;
- /* push element on stack */
- return exiPushStack(state, 65, se);
- }
- break;
- case 177:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PEVStatus)] */
- se->localPart = 32; /* "PEVStatus" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 178;
- /* push element on stack */
- return exiPushStack(state, 25, se);
- break;
- case 179:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}EVSEID)] */
- se->localPart = 3; /* "EVSEID" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 181;
- /* push element on stack */
- return exiPushStack(state, 87, se);
- break;
- case 181:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}EVSEStatus)] */
- se->localPart = 7; /* "EVSEStatus" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 182;
- /* push element on stack */
- return exiPushStack(state, 36, se);
- break;
- case 182:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgBody}TCurrent)] */
- se->localPart = 63; /* "TCurrent" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 183;
- /* push element on stack */
- return exiPushStack(state, 47, se);
- break;
- case 185:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDef}Body)] */
- se->localPart = 0; /* "Body" */
- se->namespaceURI = 6; /* "urn:iso:15118:2:2010:MsgDef" */
- /* move on */
- state->grammarStack[state->stackIndex] = 187;
- /* push element on stack */
- return exiPushStack(state, 188, se);
- break;
- case 186:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgDef}SessionInformation)] */
- se->localPart = 7; /* "SessionInformation" */
- se->namespaceURI = 6; /* "urn:iso:15118:2:2010:MsgDef" */
- /* move on */
- state->grammarStack[state->stackIndex] = 189;
- /* push element on stack */
- return exiPushStack(state, 190, se);
- break;
- case 188:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgDef}BodyElement), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}LineLockReq), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}LineLockRes), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}MeteringReceiptReq), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}MeteringReceiptRes), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}MeteringStatusReq), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}MeteringStatusRes), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PaymentDetailsReq), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PaymentDetailsRes), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PowerDeliveryReq), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PowerDeliveryRes), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PowerDiscoveryReq), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}PowerDiscoveryRes), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ServiceDiscoveryReq), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ServiceDiscoveryRes), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ServicePaymentSelectionReq), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}ServicePaymentSelectionRes), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}SessionSetupReq), START_ELEMENT({urn:iso:15118:2:2010:MsgBody}SessionSetupRes), END_ELEMENT] */
- if (state->eventCode == 0) {
- se->localPart = 2; /* "BodyElement" */
- se->namespaceURI = 6; /* "urn:iso:15118:2:2010:MsgDef" */
- /* move on */
- state->grammarStack[state->stackIndex] = 211;
- /* push element on stack */
- return exiPushStack(state, 3, se);
- }
- else if (state->eventCode == 1) {
- se->localPart = 11; /* "LineLockReq" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 211;
- /* push element on stack */
- return exiPushStack(state, 5, se);
- }
- else if (state->eventCode == 2) {
- se->localPart = 13; /* "LineLockRes" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 211;
- /* push element on stack */
- return exiPushStack(state, 6, se);
- }
- else if (state->eventCode == 3) {
- se->localPart = 17; /* "MeteringReceiptReq" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 211;
- /* push element on stack */
- return exiPushStack(state, 7, se);
- }
- else if (state->eventCode == 4) {
- se->localPart = 19; /* "MeteringReceiptRes" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 211;
- /* push element on stack */
- return exiPushStack(state, 8, se);
- }
- else if (state->eventCode == 5) {
- se->localPart = 21; /* "MeteringStatusReq" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 211;
- /* push element on stack */
- return exiPushStack(state, 9, se);
- }
- else if (state->eventCode == 6) {
- se->localPart = 23; /* "MeteringStatusRes" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 211;
- /* push element on stack */
- return exiPushStack(state, 10, se);
- }
- else if (state->eventCode == 7) {
- se->localPart = 33; /* "PaymentDetailsReq" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 211;
- /* push element on stack */
- return exiPushStack(state, 11, se);
- }
- else if (state->eventCode == 8) {
- se->localPart = 35; /* "PaymentDetailsRes" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 211;
- /* push element on stack */
- return exiPushStack(state, 12, se);
- }
- else if (state->eventCode == 9) {
- se->localPart = 37; /* "PowerDeliveryReq" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 211;
- /* push element on stack */
- return exiPushStack(state, 13, se);
- }
- else if (state->eventCode == 10) {
- se->localPart = 39; /* "PowerDeliveryRes" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 211;
- /* push element on stack */
- return exiPushStack(state, 14, se);
- }
- else if (state->eventCode == 11) {
- se->localPart = 41; /* "PowerDiscoveryReq" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 211;
- /* push element on stack */
- return exiPushStack(state, 15, se);
- }
- else if (state->eventCode == 12) {
- se->localPart = 43; /* "PowerDiscoveryRes" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 211;
- /* push element on stack */
- return exiPushStack(state, 16, se);
- }
- else if (state->eventCode == 13) {
- se->localPart = 48; /* "ServiceDiscoveryReq" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 211;
- /* push element on stack */
- return exiPushStack(state, 17, se);
- }
- else if (state->eventCode == 14) {
- se->localPart = 50; /* "ServiceDiscoveryRes" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 211;
- /* push element on stack */
- return exiPushStack(state, 18, se);
- }
- else if (state->eventCode == 15) {
- se->localPart = 53; /* "ServicePaymentSelectionReq" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 211;
- /* push element on stack */
- return exiPushStack(state, 19, se);
- }
- else if (state->eventCode == 16) {
- se->localPart = 55; /* "ServicePaymentSelectionRes" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 211;
- /* push element on stack */
- return exiPushStack(state, 20, se);
- }
- else if (state->eventCode == 17) {
- se->localPart = 59; /* "SessionSetupReq" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 211;
- /* push element on stack */
- return exiPushStack(state, 21, se);
- }
- else if (state->eventCode == 18) {
- se->localPart = 61; /* "SessionSetupRes" */
- se->namespaceURI = 4; /* "urn:iso:15118:2:2010:MsgBody" */
- /* move on */
- state->grammarStack[state->stackIndex] = 211;
- /* push element on stack */
- return exiPushStack(state, 22, se);
- }
- break;
- case 189:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDef}Notification), END_ELEMENT] */
- if (state->eventCode == 0) {
- se->localPart = 6; /* "Notification" */
- se->namespaceURI = 6; /* "urn:iso:15118:2:2010:MsgDef" */
- /* move on */
- state->grammarStack[state->stackIndex] = 191;
- /* push element on stack */
- return exiPushStack(state, 192, se);
- }
- break;
- case 190:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}SessionID)] */
- se->localPart = 35; /* "SessionID" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 193;
- /* push element on stack */
- return exiPushStack(state, 194, se);
- break;
- case 192:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}FaultCode), START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}FaultMsg), START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}EventList), END_ELEMENT] */
- if (state->eventCode == 0) {
- se->localPart = 13; /* "FaultCode" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 200;
- /* push element on stack */
- return exiPushStack(state, 201, se);
- }
- else if (state->eventCode == 1) {
- se->localPart = 14; /* "FaultMsg" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 202;
- /* push element on stack */
- return exiPushStack(state, 203, se);
- }
- else if (state->eventCode == 2) {
- se->localPart = 10; /* "EventList" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 204;
- /* push element on stack */
- return exiPushStack(state, 205, se);
- }
- break;
- case 193:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}ServiceSessionID), START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}ProtocolVersion), END_ELEMENT] */
- if (state->eventCode == 0) {
- se->localPart = 33; /* "ServiceSessionID" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 195;
- /* push element on stack */
- return exiPushStack(state, 194, se);
- }
- else if (state->eventCode == 1) {
- se->localPart = 25; /* "ProtocolVersion" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 196;
- /* push element on stack */
- return exiPushStack(state, 197, se);
- }
- break;
- case 195:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}ProtocolVersion), END_ELEMENT] */
- if (state->eventCode == 0) {
- se->localPart = 25; /* "ProtocolVersion" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 196;
- /* push element on stack */
- return exiPushStack(state, 197, se);
- }
- break;
- case 200:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}FaultMsg), START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}EventList), END_ELEMENT] */
- if (state->eventCode == 0) {
- se->localPart = 14; /* "FaultMsg" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 202;
- /* push element on stack */
- return exiPushStack(state, 203, se);
- }
- else if (state->eventCode == 1) {
- se->localPart = 10; /* "EventList" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 204;
- /* push element on stack */
- return exiPushStack(state, 205, se);
- }
- break;
- case 202:
- /* Element[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}EventList), END_ELEMENT] */
- if (state->eventCode == 0) {
- se->localPart = 10; /* "EventList" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 204;
- /* push element on stack */
- return exiPushStack(state, 205, se);
- }
- break;
- case 205:
- /* FirstStartTagStartTag[START_ELEMENT({urn:iso:15118:2:2010:MsgDataTypes}Event)] */
- se->localPart = 9; /* "Event" */
- se->namespaceURI = 5; /* "urn:iso:15118:2:2010:MsgDataTypes" */
- /* move on */
- state->grammarStack[state->stackIndex] = 208;
- /* push element on stack */
- return exiPushStack(state, 209, se);
- break;
- default:
- return -1;
- }
- return -1;
- }
- int exiDecodeEndElement(bitstream_t* stream, exi_state_t* state,
- eqname_t* ee) {
- /* pop item and update ahead of time element qname */
- ee->localPart = state->elementStack[state->stackIndex].localPart;
- ee->namespaceURI = state->elementStack[state->stackIndex].namespaceURI;
- return exiPopStack(state);
- }
- int exiDecodeCharacters(bitstream_t* stream, exi_state_t* state,
- exi_value_t* val) {
- uint8_t xsi;
- switch (state->grammarStack[state->stackIndex]) {
- case 27:
- /* CHARACTERS[BOOLEAN] */
- val->type = BOOLEAN;
- decodeBoolean(stream, &val->boolean);
- /* move on */
- state->grammarStack[state->stackIndex] = 31;
- return 0;
- case 30:
- /* CHARACTERS[BOOLEAN] */
- val->type = BOOLEAN;
- decodeBoolean(stream, &val->boolean);
- /* move on */
- state->grammarStack[state->stackIndex] = 32;
- return 0;
- case 34:
- /* CHARACTERS[ENUMERATION] */
- val->type = ENUMERATION;
- decodeNBitUnsignedInteger(stream, 2, &val->enumeration);
- /* move on */
- state->grammarStack[state->stackIndex] = 37;
- return 0;
- case 39:
- /* CHARACTERS[BOOLEAN] */
- val->type = BOOLEAN;
- decodeBoolean(stream, &val->boolean);
- /* move on */
- state->grammarStack[state->stackIndex] = 48;
- return 0;
- case 43:
- /* CHARACTERS[BOOLEAN] */
- val->type = BOOLEAN;
- decodeBoolean(stream, &val->boolean);
- /* move on */
- state->grammarStack[state->stackIndex] = 49;
- return 0;
- case 45:
- /* CHARACTERS[BOOLEAN] */
- val->type = BOOLEAN;
- decodeBoolean(stream, &val->boolean);
- /* move on */
- state->grammarStack[state->stackIndex] = 50;
- return 0;
- case 47:
- /* CHARACTERS[INTEGER_64] */
- val->type = INTEGER_64;
- decodeInteger64(stream, &val->int64);
- /* move on */
- state->grammarStack[state->stackIndex] = 51;
- return 0;
- case 53:
- /* CHARACTERS[STRING] */
- val->type = STRING;
- decodeStringValue(stream, &val->string);
- /* move on */
- state->grammarStack[state->stackIndex] = 60;
- return 0;
- case 57:
- /* CHARACTERS[ENUMERATION] */
- val->type = ENUMERATION;
- decodeNBitUnsignedInteger(stream, 3, &val->enumeration);
- /* move on */
- state->grammarStack[state->stackIndex] = 61;
- return 0;
- case 63:
- /* CHARACTERS[STRING] */
- val->type = STRING;
- decodeStringValue(stream, &val->string);
- /* move on */
- state->grammarStack[state->stackIndex] = 71;
- return 0;
- case 65:
- /* CHARACTERS[BINARY_HEX] */
- val->type = BINARY_HEX;
- decodeBinary(stream, &val->binary);
- /* move on */
- state->grammarStack[state->stackIndex] = 72;
- return 0;
- case 74:
- /* CHARACTERS[ENUMERATION] */
- val->type = ENUMERATION;
- decodeNBitUnsignedInteger(stream, 4, &val->enumeration);
- /* move on */
- state->grammarStack[state->stackIndex] = 78;
- return 0;
- case 77:
- /* CHARACTERS[INTEGER_64] */
- /* xsi:type OR xsi:nil */
- decodeNBitUnsignedInteger(stream, 1, &xsi);
- val->type = INTEGER_64;
- decodeInteger64(stream, &val->int64);
- /* move on */
- state->grammarStack[state->stackIndex] = 79;
- return 0;
- case 69:
- /* CHARACTERS[INTEGER_16] */
- val->type = INTEGER_16;
- decodeInteger32(stream, &val->int32);
- /* move on */
- state->grammarStack[state->stackIndex] = 80;
- return 0;
- case 82:
- /* CHARACTERS[ENUMERATION] */
- val->type = ENUMERATION;
- decodeNBitUnsignedInteger(stream, 1, &val->enumeration);
- /* move on */
- state->grammarStack[state->stackIndex] = 83;
- return 0;
- case 85:
- /* CHARACTERS[ENUMERATION] */
- val->type = ENUMERATION;
- decodeNBitUnsignedInteger(stream, 1, &val->enumeration);
- /* move on */
- state->grammarStack[state->stackIndex] = 93;
- return 0;
- case 87:
- /* CHARACTERS[BINARY_HEX] */
- val->type = BINARY_HEX;
- decodeBinary(stream, &val->binary);
- /* move on */
- state->grammarStack[state->stackIndex] = 94;
- return 0;
- case 96:
- /* CHARACTERS[STRING] */
- val->type = STRING;
- decodeStringValue(stream, &val->string);
- /* move on */
- state->grammarStack[state->stackIndex] = 97;
- return 0;
- case 99:
- /* CHARACTERS[ENUMERATION] */
- val->type = ENUMERATION;
- decodeNBitUnsignedInteger(stream, 2, &val->enumeration);
- /* move on */
- state->grammarStack[state->stackIndex] = 100;
- return 0;
- case 109:
- /* CHARACTERS[ENUMERATION] */
- val->type = ENUMERATION;
- decodeNBitUnsignedInteger(stream, 3, &val->enumeration);
- /* move on */
- state->grammarStack[state->stackIndex] = 110;
- return 0;
- case 116:
- /* CHARACTERS[INTEGER_16] */
- val->type = INTEGER_16;
- decodeInteger32(stream, &val->int32);
- /* move on */
- state->grammarStack[state->stackIndex] = 119;
- return 0;
- case 121:
- /* CHARACTERS[ENUMERATION] */
- val->type = ENUMERATION;
- decodeNBitUnsignedInteger(stream, 1, &val->enumeration);
- /* move on */
- state->grammarStack[state->stackIndex] = 130;
- return 0;
- case 127:
- /* CHARACTERS[STRING] */
- val->type = STRING;
- decodeStringValue(stream, &val->string);
- /* move on */
- state->grammarStack[state->stackIndex] = 131;
- return 0;
- case 133:
- /* CHARACTERS[STRING] */
- val->type = STRING;
- decodeStringValue(stream, &val->string);
- /* move on */
- state->grammarStack[state->stackIndex] = 136;
- return 0;
- case 139:
- /* CHARACTERS[STRING] */
- val->type = STRING;
- decodeStringValue(stream, &val->string);
- /* move on */
- state->grammarStack[state->stackIndex] = 142;
- return 0;
- case 146:
- /* CHARACTERS[UNSIGNED_INTEGER_32] */
- val->type = UNSIGNED_INTEGER_32;
- decodeUnsignedInteger32(stream, &val->uint32);
- /* move on */
- state->grammarStack[state->stackIndex] = 149;
- return 0;
- case 151:
- /* CHARACTERS[ENUMERATION] */
- val->type = ENUMERATION;
- decodeNBitUnsignedInteger(stream, 2, &val->enumeration);
- /* move on */
- state->grammarStack[state->stackIndex] = 154;
- return 0;
- case 153:
- /* CHARACTERS[STRING] */
- val->type = STRING;
- decodeStringValue(stream, &val->string);
- /* move on */
- state->grammarStack[state->stackIndex] = 155;
- return 0;
- case 157:
- /* CHARACTERS[ENUMERATION] */
- val->type = ENUMERATION;
- decodeNBitUnsignedInteger(stream, 3, &val->enumeration);
- /* move on */
- state->grammarStack[state->stackIndex] = 160;
- return 0;
- case 164:
- /* CHARACTERS[BINARY_HEX] */
- val->type = BINARY_HEX;
- decodeBinary(stream, &val->binary);
- /* move on */
- state->grammarStack[state->stackIndex] = 169;
- return 0;
- case 166:
- /* CHARACTERS[STRING] */
- val->type = STRING;
- decodeStringValue(stream, &val->string);
- /* move on */
- state->grammarStack[state->stackIndex] = 170;
- return 0;
- case 174:
- /* CHARACTERS[ENUMERATION] */
- val->type = ENUMERATION;
- decodeNBitUnsignedInteger(stream, 2, &val->enumeration);
- /* move on */
- state->grammarStack[state->stackIndex] = 176;
- return 0;
- case 180:
- /* CHARACTERS[ENUMERATION] */
- val->type = ENUMERATION;
- decodeNBitUnsignedInteger(stream, 3, &val->enumeration);
- /* move on */
- state->grammarStack[state->stackIndex] = 184;
- return 0;
- case 194:
- /* CHARACTERS[BINARY_HEX] */
- val->type = BINARY_HEX;
- decodeBinary(stream, &val->binary);
- /* move on */
- state->grammarStack[state->stackIndex] = 198;
- return 0;
- case 197:
- /* CHARACTERS[STRING] */
- val->type = STRING;
- decodeStringValue(stream, &val->string);
- /* move on */
- state->grammarStack[state->stackIndex] = 199;
- return 0;
- case 201:
- /* CHARACTERS[ENUMERATION] */
- val->type = ENUMERATION;
- decodeNBitUnsignedInteger(stream, 2, &val->enumeration);
- /* move on */
- state->grammarStack[state->stackIndex] = 206;
- return 0;
- case 203:
- /* CHARACTERS[STRING] */
- /* xsi:type OR xsi:nil */
- decodeNBitUnsignedInteger(stream, 1, &xsi);
- val->type = STRING;
- decodeStringValue(stream, &val->string);
- /* move on */
- state->grammarStack[state->stackIndex] = 207;
- return 0;
- case 209:
- /* CHARACTERS[ENUMERATION] */
- val->type = ENUMERATION;
- decodeNBitUnsignedInteger(stream, 3, &val->enumeration);
- /* move on */
- state->grammarStack[state->stackIndex] = 210;
- return 0;
- default:
- return -1;
- }
- return 0;
- }
- int exiDecodeAttribute(bitstream_t* stream, exi_state_t* state,
- eqname_t* at, exi_value_t* val) {
- switch (state->grammarStack[state->stackIndex]) {
- default:
- return -1;
- }
- return -1;
- }
- #endif
|