source: CMT/v1r14p20031120/src/cmt_language.h @ 1

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

Import all tags

File size: 1.2 KB
Line 
1#ifndef __cmt_language_h__
2#define __cmt_language_h__
3
4#include "cmt_parser.h"
5#include "cmt_fragment.h"
6
7class Language
8{
9public:
10  typedef cmt_vector<Language> LanguageVector;
11  static void action (const CmtSystem::cmt_string_vector& words);
12  static Language& find (const cmt_string& name);
13  static Language& find_with_suffix (const cmt_string& suffix);
14  static Language& add (const cmt_string& name);
15  static void show (const cmt_string& name);
16  static void show_all ();
17  static void show_names ();
18  static void setup_all_fragments ();
19  static void clear_all ();
20  static LanguageVector& languages ();
21  static Language& null ();
22
23public:
24  Language ();
25  ~Language ();
26  void clear ();
27  void show ();
28  void setup_fragments ();
29  bool operator == (const cmt_string& name) const;
30  bool operator == (const Language& other) const;
31  bool operator != (const Language& other) const;
32
33  cmt_string m_name;
34  cmt_string fragment_name;
35  cmt_string linker;
36  cmt_string output_suffix;
37  bool prototypes;
38  cmt_string preprocessor_command;
39  CmtSystem::cmt_string_vector suffixes;
40  CmtSystem::cmt_string_vector extra_output_suffixes;
41
42  FragmentHandle application;
43  FragmentHandle library;
44};
45
46#endif
Note: See TracBrowser for help on using the repository browser.