00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef MAD8Parser_hpp
00025 #define MAD8Parser_hpp 1
00026
00027 #include "Translate/TranslateCore.hpp"
00028
00029
00030
00031 class MAD8Parser : public TranslateCore {
00032 public:
00033
00036 MAD8Parser();
00037
00038 protected:
00039
00040 void init_lists_mad8();
00041
00042 bool custom_x_statement_to_x (StrList word_list,
00043 std::string comment, UAPNode* file_root);
00044
00045 bool custom_aml_node_to_x (UAPNode* aml_ele, UAPNode* x_rep);
00046
00047 bool custom_aml_element_attribute_to_x(UAPNode* aml_root, UAPNode* aml_ele,
00048 UAPNode* aml_attrib, UAPNode* x_ele);
00049
00050 bool custom_x_add_attributes (StrList& word_list, std::string ele_class,
00051 std::string& attrib_name, UAPNode* x_ele_root);
00052
00053 bool custom_x_element_to_x_file (UAPNode* x_node, std::string& comment,
00054 StreamStruct& x_out);
00055
00056 void custom2_aml_element_attribute_to_x(UAPNode* aml_ele, UAPNode* x_ele);
00057
00058 void custom_x_attrib_to_x_file_translate (std::string& attrib_name, std::string& attrib_value);
00059
00060 };
00061
00062
00063 #endif