Fixed newline characters throughout the code
[com/gs-lite.git] / src / ftacmp / field_list.h
index 8e202e9..9b0e1d6 100644 (file)
@@ -1,49 +1,49 @@
-/* ------------------------------------------------\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
-#ifndef __FIELD_LIST_H_\r
-#define __FIELD_LIST_H_\r
-\r
-#include<string>\r
-#include<map>\r
-#include"xml_t.h"\r
-\r
-\r
-class field_list{\r
-public:\r
-       std::map<std::string, std::string> type_verifier;\r
-       std::map<std::string, std::string> fields;\r
-\r
-       field_list(xml_t *x);\r
-\r
-       int verify_field(std::string name, std::string type, std::string &err){\r
-               if(fields.count(name) == 0){\r
-                       err += "\tCould not find field "+name+" in the field list\n";\r
-                       return 1;\r
-               }\r
-               if(fields[name] == "")\r
-                       return 0;\r
-               if(type_verifier[fields[name]] != type_verifier[type]){\r
-                       err += "\tfield "+name+" has type "+type+", which isn't compatible with field list type "+fields[name]+"\n";\r
-                       return 2;\r
-               }\r
-               return 0;\r
-       }\r
-\r
-}; \r
-\r
-\r
-#endif\r
-\r
+/* ------------------------------------------------
+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 __FIELD_LIST_H_
+#define __FIELD_LIST_H_
+
+#include<string>
+#include<map>
+#include"xml_t.h"
+
+
+class field_list{
+public:
+       std::map<std::string, std::string> type_verifier;
+       std::map<std::string, std::string> fields;
+
+       field_list(xml_t *x);
+
+       int verify_field(std::string name, std::string type, std::string &err){
+               if(fields.count(name) == 0){
+                       err += "\tCould not find field "+name+" in the field list\n";
+                       return 1;
+               }
+               if(fields[name] == "")
+                       return 0;
+               if(type_verifier[fields[name]] != type_verifier[type]){
+                       err += "\tfield "+name+" has type "+type+", which isn't compatible with field list type "+fields[name]+"\n";
+                       return 2;
+               }
+               return 0;
+       }
+
+}; 
+
+
+#endif
+