EgtGeneral 1.4a4 : Aggiunte funzioni GetModule*. Si usano solo string.

This commit is contained in:
Dario Sassi
2013-12-11 18:29:32 +00:00
parent 4903e8f3fd
commit 07cfdd76f3
10 changed files with 130 additions and 52 deletions
+4 -5
View File
@@ -14,13 +14,12 @@
//--------------------------- Include ----------------------------------------
#include "stdafx.h"
#include "CmdScanner.h"
#include "/EgtDev/Include/EgnStringUtils.h"
#include "/EgtDev/Include/EgnStringConverter.h"
#include "CmdScanner.h"
using namespace std ;
//----------------------------------------------------------------------------
CmdScanner::CmdScanner( void)
{
@@ -35,19 +34,19 @@ CmdScanner::~CmdScanner( void)
//----------------------------------------------------------------------------
bool
CmdScanner::Initialize( wstring sCmdFile)
CmdScanner::Init( string sCmdFile)
{
// se già aperto, lo chiudo
Terminate() ;
// apertura del file di ingresso
m_CmdFile.open( sCmdFile, ios::in) ;
m_CmdFile.open( stringtoW( sCmdFile), ios::in) ;
// reset numero linea corrente
m_nLineNbr = 0 ;
// salvo path file
m_sFName = wstringtoA( sCmdFile) ;
m_sFName = sCmdFile ;
return ( ! m_CmdFile.fail()) ;
}