source: branches/with_autoconf/src/global_functions.h @ 8

Last change on this file since 8 was 8, checked in by nipo, 16 years ago

Checkin autotools magic

File size: 1.9 KB
Line 
1/*------------------------------------------------------------\
2|                                                             |
3| Tool    :                  systemcass                       |
4|                                                             |
5| File    :                 global_functions.h                |
6|                                                             |
7| Author  :                 Buchmann Richard                  |
8|                                                             |
9| Date    :                   09_07_2004                      |
10|                                                             |
11\------------------------------------------------------------*/
12#ifndef __GLOBAL_FUNCTIONS_H__
13#define __GLOBAL_FUNCTIONS_H__
14
15#include "sc_fwd.h"
16#include "sc_time.h"
17
18extern int sc_main(int, char **);
19
20namespace sc_core {
21
22/////////////////////////
23enum sc_stop_mode
24{
25  SC_STOP_FINISH_DELTA,
26  SC_STOP_IMMEDIATE
27};
28
29/////////////////////////
30
31
32extern int main(int argc, char *argv[]);
33
34extern void sc_initialize(void);
35
36//extern void next_cycle(void);
37extern void         sc_start         (double d_val)  __attribute__((deprecated));
38extern void         sc_start         ();
39extern void         sc_start         ( const sc_time& duration );
40extern void         sc_start         (double d_val, sc_time_unit d_tu);
41extern void         sc_stop          ();
42extern void         sc_set_stop_mode (sc_stop_mode);
43extern sc_stop_mode sc_get_stop_mode ();
44
45extern const char *sc_gen_unique_name (const char *basename_);
46
47/////////////////////////
48///// SYSTEMCASS_SPECIFIC
49extern void close_systemcass   ();
50extern bool run_schedule_editor (const char*);
51extern const char *temporary_dir;
52extern const char *generated_files_dir;
53
54/////////////////////////
55
56} // end of namespace sc_core
57
58using sc_core::sc_gen_unique_name;
59using sc_core::sc_initialize;
60using sc_core::sc_start;
61using sc_core::sc_stop;
62
63/////////////////////////
64
65#endif
66
Note: See TracBrowser for help on using the repository browser.