# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

georges_loader.h

Go to the documentation of this file.
00001 
00007 /* Copyright, 2000 Nevrax Ltd.
00008  *
00009  * This file is part of NEVRAX NEL.
00010  * NEVRAX NEL is free software; you can redistribute it and/or modify
00011  * it under the terms of the GNU General Public License as published by
00012  * the Free Software Foundation; either version 2, or (at your option)
00013  * any later version.
00014 
00015  * NEVRAX NEL is distributed in the hope that it will be useful, but
00016  * WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
00018  * General Public License for more details.
00019 
00020  * You should have received a copy of the GNU General Public License
00021  * along with NEVRAX NEL; see the file COPYING. If not, write to the
00022  * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
00023  * MA 02111-1307, USA.
00024  */
00025 
00026 #ifndef NLGEORGES_LOADER_H
00027 #define NLGEORGES_LOADER_H
00028 
00029 #include "nel/georges/form_loader.h"
00030 #include "nel/georges/mold_loader.h"
00031 
00032 namespace NLGEORGES
00033 {
00034 
00035 class CLoader  
00036 {
00037         static bool _Initialized;
00038 protected:
00039         CFormLoader fl;
00040         CMoldLoader ml;
00041         CStringEx sxworkdirectory;
00042         CStringEx sxrootdirectory;
00043         CStringEx WhereIs( const CStringEx &_sxdirectory, const CStringEx &_sxfilename );
00044 
00045 public:
00046         CLoader();
00047         virtual ~CLoader();
00048 
00049         void LoadForm( CForm& _f, const CStringEx& _sxfullname );
00050         void LoadForm( CForm& _f, const CStringEx& _sxfullname, const CStringEx& _sxdate );
00051         void LoadSearchForm( CForm& _f, const CStringEx& _sxfilename );
00052         void LoadSearchForm( CForm& _f, const CStringEx& _sxfilename, const CStringEx& _sxdate );
00053         void SaveForm( CForm& _f, const CStringEx& _sxfullename );
00054         CMoldElt* LoadMold( const CStringEx &_sxfilename );
00055         CMoldElt* LoadMold( const CStringEx &_sxfilename, const CStringEx &_sxdate ); 
00056 
00057         CStringEx WhereIsDfnTyp( const CStringEx &_sxfilename );
00058         CStringEx WhereIsForm( const CStringEx &_sxfilename );
00059 
00060         CStringEx GetWorkDirectory() const;
00061         CStringEx GetRootDirectory() const;
00062 
00063 // interface:
00064         void SetWorkDirectory( const CStringEx &_sxworkdirectory );
00065         void SetRootDirectory( const CStringEx &_sxrootdirectory );
00066         void SetTypPredef( const CStringEx& _sxfilename, const std::vector< CStringEx >& _pvsx );
00067 
00068 // temporaire:
00069         void MakeDfn( const CStringEx &_sxfullname, const std::vector< std::pair< CStringEx, CStringEx > >* const _pvdefine = 0 );
00070         void MakeTyp( const CStringEx &_sxfullname, const CStringEx &_sxtype, const CStringEx &_sxformula, const CStringEx &_sxenum, const CStringEx &_sxlow, const CStringEx &_sxhigh, const CStringEx &_sxdefault, const std::vector< std::pair< CStringEx, CStringEx > >* const _pvpredef = 0, const std::vector< std::pair< CStringEx, CStringEx > >* const _pvparent = 0 );
00071 };
00072 
00073 } // NLGEORGES
00074 
00075 #endif // NLGEORGES_LOADER_H