X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fftacmp%2Fxml_t.h;h=392f4761eef017d166f14b22fc1a5044405f0fd1;hb=52bf6cf53a585197f998187399ebfd88681d4490;hp=33479354851187d5e96c28df75d9ac252ab27589;hpb=07495effe193ca3f73c3bf0ce417068f9ac9dcdd;p=com%2Fgs-lite.git diff --git a/src/ftacmp/xml_t.h b/src/ftacmp/xml_t.h index 3347935..392f476 100644 --- a/src/ftacmp/xml_t.h +++ b/src/ftacmp/xml_t.h @@ -1,56 +1,56 @@ -/* ------------------------------------------------ -Copyright 2014 AT&T Intellectual Property - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ------------------------------------------- */ -#ifndef __XML_T_DEFINED_ -#define __XML_T_DEFINED_ - -#include -#include -#include -#include -#include -#include - - -void xmlParser_setfileinput(FILE *f); -void xmlParser_setstringinput(char *s); - - -// Represent leaf-level xml nodes -class xml_leaf_t{ -public: - std::string name; - std::vector attrs; - std::vector vals; - - xml_leaf_t(const char *n, std::vector &a, std::vector &v){ - name = n; - attrs = a; - vals = v; - } -}; - -class xml_t{ -public: - std::vector leaves; - - xml_t(){} - - void add_leaf(xml_leaf_t *l){ - leaves.push_back(l); - } -}; - -#endif - +/* ------------------------------------------------ +Copyright 2014 AT&T Intellectual Property + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + ------------------------------------------- */ +#ifndef __XML_T_DEFINED_ +#define __XML_T_DEFINED_ + +#include +#include +#include +#include +#include +#include + + +void xmlParser_setfileinput(FILE *f); +void xmlParser_setstringinput(char *s); + + +// Represent leaf-level xml nodes +class xml_leaf_t{ +public: + std::string name; + std::vector attrs; + std::vector vals; + + xml_leaf_t(const char *n, std::vector &a, std::vector &v){ + name = n; + attrs = a; + vals = v; + } +}; + +class xml_t{ +public: + std::vector leaves; + + xml_t(){} + + void add_leaf(xml_leaf_t *l){ + leaves.push_back(l); + } +}; + +#endif +