source: CMT/v1r10p20011126/src/cmt_constituent.h @ 1

Last change on this file since 1 was 1, checked in by arnault, 19 years ago

Import all tags

File size: 1.6 KB
Line 
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
9class Constituent
10{
11public:
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 clear_all ();
26  static ConstituentVector& constituents ();
27
28public:
29  Constituent ();
30  ~Constituent ();
31  void parse ();
32
33  void clear ();
34  void build_makefile (bool simulation) const;
35  void build_msdev_file (bool simulation) const;
36  void show () const;
37
38  cmt_string name;
39  cmt_string generator;
40  ConstituentType type;
41  Group* group;
42  cmt_string suffix;
43  CmtSystem::cmt_string_vector modules;
44  bool need_OS9;
45  bool windows;
46  bool no_static;
47  bool no_share;
48  bool need_prototypes;
49  bool need_check;
50  bool build_triggers;
51  CmtSystem::cmt_string_vector includes;
52  CmtSystem::cmt_string_vector imports;
53  Variable::VariableVector variables;
54
55private:
56  CmtSystem::cmt_string_vector parameters;
57
58};
59
60#endif
Note: See TracBrowser for help on using the repository browser.