Added quantiling UDAFs
[com/gs-lite.git] / src / tools / xml_t.cc
index 68941ab..005c15d 100644 (file)
@@ -1,47 +1,47 @@
-/* ------------------------------------------------
-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.
- ------------------------------------------- */
-
-#include "xml_t.h"
-
-using namespace std;
-
-xml_t::xml_t(tag_t *s, xml_list_t *xl,const char *e){
-       name=s->name;
-       attribs = s->nvp_list;
-       subtrees = xl->xlist;
-       end_tag_name = e;
-}
-
-void xml_t::get_roots(string type, vector<xml_t *> &ret){
-       if(name==type){
-               ret.push_back(this);
-       }else{
-               int i;
-               for(i=0;i<subtrees.size();++i){
-                       subtrees[i]->get_roots(type,ret);
-               }
-       }
-}
-
-void xml_t::get_roots(set<string> type, vector<xml_t *> &ret){
-       if(type.count(name)>0){
-               ret.push_back(this);
-       }else{
-               int i;
-               for(i=0;i<subtrees.size();++i){
-                       subtrees[i]->get_roots(type,ret);
-               }
-       }
-}
+/* ------------------------------------------------\r
+Copyright 2014 AT&T Intellectual Property\r
+   Licensed under the Apache License, Version 2.0 (the "License");\r
+   you may not use this file except in compliance with the License.\r
+   You may obtain a copy of the License at\r
+\r
+     http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+   Unless required by applicable law or agreed to in writing, software\r
+   distributed under the License is distributed on an "AS IS" BASIS,\r
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+   See the License for the specific language governing permissions and\r
+   limitations under the License.\r
+ ------------------------------------------- */\r
+\r
+#include "xml_t.h"\r
+\r
+using namespace std;\r
+\r
+xml_t::xml_t(tag_t *s, xml_list_t *xl,const char *e){\r
+       name=s->name;\r
+       attribs = s->nvp_list;\r
+       subtrees = xl->xlist;\r
+       end_tag_name = e;\r
+}\r
+\r
+void xml_t::get_roots(string type, vector<xml_t *> &ret){\r
+       if(name==type){\r
+               ret.push_back(this);\r
+       }else{\r
+               int i;\r
+               for(i=0;i<subtrees.size();++i){\r
+                       subtrees[i]->get_roots(type,ret);\r
+               }\r
+       }\r
+}\r
+\r
+void xml_t::get_roots(set<string> type, vector<xml_t *> &ret){\r
+       if(type.count(name)>0){\r
+               ret.push_back(this);\r
+       }else{\r
+               int i;\r
+               for(i=0;i<subtrees.size();++i){\r
+                       subtrees[i]->get_roots(type,ret);\r
+               }\r
+       }\r
+}\r