source: CMT/v1r18p20041201/source/cmt_script.h @ 1

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

Import all tags

File size: 991 bytes
Line 
1//-----------------------------------------------------------
2// Copyright Christian Arnault LAL-Orsay CNRS
3// arnault@lal.in2p3.fr
4// See the complete license in cmt_license.txt "http://www.cecill.info".
5//-----------------------------------------------------------
6
7#ifndef __cmt_script_h__
8#define __cmt_script_h__
9
10#include "cmt_parser.h"
11#include "cmt_system.h"
12
13class Script
14{
15public:
16  typedef cmt_vector<Script> ScriptVector;
17
18  static void action (const CmtSystem::cmt_string_vector& words,
19                      ScriptType type,
20                      Use* use);
21  static Script* find (const cmt_string& name, Use* use);
22  static Script* add (const cmt_string& name, ScriptType type, Use* use);
23  static void all_print_clean (PrintMode mode);
24  static void all_print (PrintMode mode);
25  static void clear_all ();
26
27public:
28  Script ();
29  ~Script ();
30  int print (PrintMode mode, const Use* use);
31
32  cmt_string name;
33  ScriptType type;
34};
35
36#endif
Note: See TracBrowser for help on using the repository browser.