From 637e738039ec3f4a76d492516d767ef791e3758e Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 13:12:28 +0000 Subject: Utilisateur : Fcolin Date : 2/02/01 Heure : 18:30 Archivé dans $/Bus/Test Commentaire: win CE compile not finished (vss 2) --- IvyProbe/TestParseCmdLine.cpp | 39 +++++++++++---------------------------- 1 file changed, 11 insertions(+), 28 deletions(-) (limited to 'IvyProbe') diff --git a/IvyProbe/TestParseCmdLine.cpp b/IvyProbe/TestParseCmdLine.cpp index 6b9201e..62eff43 100644 --- a/IvyProbe/TestParseCmdLine.cpp +++ b/IvyProbe/TestParseCmdLine.cpp @@ -1,10 +1,10 @@ -// FxParseCmdLine.cpp: implementation of the FxParseCmdLine class. +// TestParseCmdLine.cpp: implementation of the TestParseCmdLine class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" -#include "NewFxServer.h" -#include "FxParseCmdLine.h" + +#include "TestParseCmdLine.h" #ifdef _DEBUG #undef THIS_FILE @@ -16,22 +16,18 @@ static char THIS_FILE[]=__FILE__; // Construction/Destruction ////////////////////////////////////////////////////////////////////// -FxParseCmdLine::FxParseCmdLine() +TestParseCmdLine::TestParseCmdLine() { - m_loop = FALSE; m_start = FALSE; - m_busstart = FALSE; - m_speed = 10000; - m_exoFile = "D:\\users\\fcolin\\DATA\\SceTobago.toc"; m_busNumber = ""; } -FxParseCmdLine::~FxParseCmdLine() +TestParseCmdLine::~TestParseCmdLine() { } -void FxParseCmdLine::ParseParam(LPCTSTR lpszParam, BOOL bFlag, BOOL bLast) +void TestParseCmdLine::ParseParam(LPCTSTR lpszParam, BOOL bFlag, BOOL bLast) { if (bFlag) { @@ -42,34 +38,21 @@ void FxParseCmdLine::ParseParam(LPCTSTR lpszParam, BOOL bFlag, BOOL bLast) } -void FxParseCmdLine::ParseParamFlag(LPCTSTR pszParam) +void TestParseCmdLine::ParseParamFlag(LPCTSTR pszParam) { - if (lstrcmpi(pszParam, "loop") == 0) - m_loop = TRUE; - else if (lstrcmpi(pszParam, "busstart") == 0) - m_busstart = TRUE; - else if (lstrcmpi(pszParam, "start") == 0) + + if (lstrcmpi(pszParam, TEXT("start")) == 0) m_start = TRUE; - else if (lstrcmpi(pszParam, "bus") == 0) + else if (lstrcmpi(pszParam, TEXT("bus")) == 0) m_shellCommand = BusNumber; - else if (lstrcmpi(pszParam, "file") == 0) - m_shellCommand = ExoFile; - else if (lstrcmpi(pszParam, "speed") == 0) - m_shellCommand = Speed; } -void FxParseCmdLine::ParseParamNotFlag(LPCTSTR pszParam) +void TestParseCmdLine::ParseParamNotFlag(LPCTSTR pszParam) { switch ( m_shellCommand ) { case BusNumber: m_busNumber = pszParam; break; - case ExoFile: - m_exoFile = pszParam; - break; - case Speed: - m_speed = atoi(pszParam); - break; } } -- cgit v1.1