[1] | 1 | #ifndef __cmt_constituent_h__ |
---|
| 2 | #define __cmt_constituent_h__ |
---|
| 3 | |
---|
| 4 | #include "cmt_parser.h" |
---|
| 5 | #include "cmt_system.h" |
---|
| 6 | #include "cmt_fragment.h" |
---|
| 7 | #include "cmt_group.h" |
---|
| 8 | |
---|
| 9 | class Constituent |
---|
| 10 | { |
---|
| 11 | public: |
---|
| 12 | typedef cmt_vector<Constituent> ConstituentVector; |
---|
| 13 | static void action (ConstituentType type, |
---|
| 14 | const CmtSystem::cmt_string_vector& words); |
---|
| 15 | static Constituent* find (const cmt_string& name); |
---|
| 16 | static Constituent* add (ConstituentType type, |
---|
| 17 | const cmt_string& name, |
---|
| 18 | const cmt_string& generator); |
---|
| 19 | static void show (const cmt_string& name); |
---|
| 20 | static void parse_all (); |
---|
| 21 | static void show_all (); |
---|
| 22 | static void show_names (); |
---|
| 23 | static void build_all_makefiles (bool simulation); |
---|
| 24 | static void build_all_msdev_files (bool simulation); |
---|
| 25 | static void build_all_vsnet_files (bool simulation); |
---|
| 26 | static void clear_all (); |
---|
| 27 | static ConstituentVector& constituents (); |
---|
| 28 | |
---|
| 29 | public: |
---|
| 30 | Constituent (); |
---|
| 31 | ~Constituent (); |
---|
| 32 | void parse (); |
---|
| 33 | |
---|
| 34 | void clear (); |
---|
| 35 | void build_makefile (bool simulation) const; |
---|
| 36 | void build_msdev_file (bool simulation) const; |
---|
| 37 | void build_vsnet_file (bool simulation) const; |
---|
| 38 | void show () const; |
---|
| 39 | |
---|
| 40 | cmt_string name; |
---|
| 41 | cmt_string generator; |
---|
| 42 | ConstituentType type; |
---|
| 43 | Group* group; |
---|
| 44 | cmt_string suffix; |
---|
| 45 | CmtSystem::cmt_string_vector modules; |
---|
| 46 | bool need_OS9; |
---|
| 47 | bool windows; |
---|
| 48 | bool no_static; |
---|
| 49 | bool no_share; |
---|
| 50 | bool need_prototypes; |
---|
| 51 | bool need_check; |
---|
| 52 | bool build_triggers; |
---|
| 53 | CmtSystem::cmt_string_vector excludes; |
---|
| 54 | cmt_vector<cmt_regexp> exclude_exprs; |
---|
| 55 | |
---|
| 56 | CmtSystem::cmt_string_vector selects; |
---|
| 57 | cmt_vector<cmt_regexp> select_exprs; |
---|
| 58 | |
---|
| 59 | CmtSystem::cmt_string_vector includes; |
---|
| 60 | CmtSystem::cmt_string_vector imports; |
---|
| 61 | Variable::VariableVector variables; |
---|
| 62 | |
---|
| 63 | private: |
---|
| 64 | CmtSystem::cmt_string_vector parameters; |
---|
| 65 | |
---|
| 66 | }; |
---|
| 67 | |
---|
| 68 | #endif |
---|