| 
            Last change
 on this file since 3343 was             3016, checked in by ansari, 19 years ago           | 
        
        
          | 
             
modification SophyaInitiator avec enregistrement list de modules - pret pour tag V2 Reza 17/7/2006 
 
           | 
        
        
          | 
            File size:
            845 bytes
           | 
        
      
      
| Line |   | 
|---|
| 1 | // This may look like C code, but it is really -*- C++ -*-
 | 
|---|
| 2 | // Classe d'initialiseur de module de SOPHYA
 | 
|---|
| 3 | 
 | 
|---|
| 4 | #ifndef SOPHYAINIT_H_SEEN
 | 
|---|
| 5 | #define SOPHYAINIT_H_SEEN
 | 
|---|
| 6 | 
 | 
|---|
| 7 | #include "machdefs.h"
 | 
|---|
| 8 | #include <string>
 | 
|---|
| 9 | 
 | 
|---|
| 10 | namespace SOPHYA {
 | 
|---|
| 11 | 
 | 
|---|
| 12 | void PrintSophyaVersion(void);
 | 
|---|
| 13 | double SophyaVersion(void); /* Version + (Revision/1000) */
 | 
|---|
| 14 | 
 | 
|---|
| 15 | // Classe d''initialisation pour les modules SOPHYA
 | 
|---|
| 16 | 
 | 
|---|
| 17 | //! Initializer class for sophya modules
 | 
|---|
| 18 | class SophyaInitiator {
 | 
|---|
| 19 | private:
 | 
|---|
| 20 |   static int FgInit;
 | 
|---|
| 21 | public:
 | 
|---|
| 22 |                         SophyaInitiator();
 | 
|---|
| 23 |   virtual               ~SophyaInitiator();
 | 
|---|
| 24 | 
 | 
|---|
| 25 |   static double         GetVersion(string& svers);
 | 
|---|
| 26 |   static void           PrintVersion(bool fglist=false);
 | 
|---|
| 27 | 
 | 
|---|
| 28 |   static int            RegisterModule(const char* name, double version);
 | 
|---|
| 29 |   static int            ListModules(ostream& os);
 | 
|---|
| 30 | };
 | 
|---|
| 31 | 
 | 
|---|
| 32 | #define SophyaInit() SophyaInitiator sophyainitiator
 | 
|---|
| 33 | 
 | 
|---|
| 34 | } // Fin du namespace
 | 
|---|
| 35 | 
 | 
|---|
| 36 | #endif
 | 
|---|
| 37 | 
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.