00001 //----------------------------------------------------------- 00002 // Copyright Christian Arnault LAL-Orsay CNRS 00003 // arnault@lal.in2p3.fr 00004 // See the complete license in cmt_license.txt "http://www.cecill.info". 00005 //----------------------------------------------------------- 00006 00007 #ifndef __cmt_script_h__ 00008 #define __cmt_script_h__ 00009 00010 #include "cmt_parser.h" 00011 #include "cmt_system.h" 00012 00013 class Script 00014 { 00015 public: 00016 typedef cmt_vector<Script> ScriptVector; 00017 00018 static void action (const CmtSystem::cmt_string_vector& words, 00019 ScriptType type, 00020 Use* use); 00021 static Script* find (const cmt_string& name, Use* use); 00022 static Script* add (const cmt_string& name, ScriptType type, Use* use); 00023 static void all_print_clean (PrintMode mode); 00024 static void all_print (PrintMode mode); 00025 static void clear_all (); 00026 00027 public: 00028 Script (); 00029 ~Script (); 00030 int print (PrintMode mode, const Use* use); 00031 00032 cmt_string name; 00033 ScriptType type; 00034 }; 00035 00036 #endif