summaryrefslogtreecommitdiff
path: root/getoptOLD
diff options
context:
space:
mode:
Diffstat (limited to 'getoptOLD')
-rw-r--r--getoptOLD/Arg.cs15
-rw-r--r--getoptOLD/GetOpt.cs98
-rw-r--r--getoptOLD/getopt.csproj106
-rw-r--r--getoptOLD/getopt.csproj.user58
-rw-r--r--getoptOLD/getopt.csproj.vspscc10
-rw-r--r--getoptOLD/getopt.sln19
-rw-r--r--getoptOLD/getopt.suobin14336 -> 0 bytes
-rw-r--r--getoptOLD/mssccprj.scc5
-rw-r--r--getoptOLD/vssver2.sccbin164 -> 0 bytes
9 files changed, 0 insertions, 311 deletions
diff --git a/getoptOLD/Arg.cs b/getoptOLD/Arg.cs
deleted file mode 100644
index 0b86cad..0000000
--- a/getoptOLD/Arg.cs
+++ /dev/null
@@ -1,15 +0,0 @@
-using System;
-
-namespace Gnu
-{
- /// <summary>
- /// An argument for GetOpt
- /// </summary>
- public class Arg
- {
- public char Flag;
- public bool TakesParameter = false;
-
- public string Parameter = "";
- }
-}
diff --git a/getoptOLD/GetOpt.cs b/getoptOLD/GetOpt.cs
deleted file mode 100644
index a158073..0000000
--- a/getoptOLD/GetOpt.cs
+++ /dev/null
@@ -1,98 +0,0 @@
-using System;
-using System.Collections.Specialized;
-using System.Collections.Generic;
-
-namespace Gnu
-{
- /// <summary>
- /// An implementation of the getopt standard, as used by Gnu GetOpt
- /// </summary>
- public class GetOpt
- {
- StringCollection m_params = new StringCollection();
- StringCollection m_extras = new StringCollection();
- List<Arg> m_args = new List<Arg>();
-
- public GetOpt(string[] CommandLineArgs, string ParametersDescription)
- {
- // Import the string array into the collection
- foreach(string s in CommandLineArgs)
- {
- m_params.Add(s);
- }
-
- // Parse the params description
- for(int i = 0; i < ParametersDescription.Length; i++)
- {
- Arg a = new Arg();
- a.Flag = ParametersDescription[i];
- if((ParametersDescription.Length > i + 1) && (ParametersDescription[i + 1] == ':'))
- {
- a.TakesParameter = true;
- i++;
- }
-
- m_args.Add(a);
- }
- }
-
- public Arg NextArg()
- {
- SnarfExtras();
-
- if(m_params.Count == 0)
- return null;
-
- foreach(Arg a in m_args)
- {
- if(a.Flag == m_params[0][1] && m_params[0][0] == '-' )
- {
- Arg matched = a;
- try
- {
- if(a.TakesParameter)
- {
- matched.Parameter = m_params[1];
- m_params.RemoveAt(1);
- }
- }
- catch(Exception)
- {
- }
-
- m_params.RemoveAt(0);
- return matched;
- }
- }
-
- if(m_params[0][0] == '-')
- {
- Arg tempa = new Arg();
- tempa.Flag = m_params[0][1];
- tempa.TakesParameter = false;
- return tempa;
- }
- return null;
- }
-
- public StringCollection Extras
- {
- get
- {
- SnarfExtras();
-
- return m_extras;
- }
- }
-
- private void SnarfExtras()
- {
- // Parameters must start with a hyphen
- while((m_params.Count > 0) && (m_params[0][0] != '-'))
- {
- m_extras.Add(m_params[0]);
- m_params.RemoveAt(0);
- }
- }
- }
-}
diff --git a/getoptOLD/getopt.csproj b/getoptOLD/getopt.csproj
deleted file mode 100644
index 3cca427..0000000
--- a/getoptOLD/getopt.csproj
+++ /dev/null
@@ -1,106 +0,0 @@
-<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <ProjectType>Local</ProjectType>
- <ProductVersion>8.0.50727</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{228B5F0B-31AE-488F-A916-B7CBB269D25F}</ProjectGuid>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ApplicationIcon>
- </ApplicationIcon>
- <AssemblyKeyContainerName>
- </AssemblyKeyContainerName>
- <AssemblyName>getopt</AssemblyName>
- <AssemblyOriginatorKeyFile>
- </AssemblyOriginatorKeyFile>
- <DefaultClientScript>JScript</DefaultClientScript>
- <DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
- <DefaultTargetSchema>IE50</DefaultTargetSchema>
- <DelaySign>false</DelaySign>
- <OutputType>Library</OutputType>
- <RootNamespace>getopt</RootNamespace>
- <RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
- <StartupObject>
- </StartupObject>
- <FileUpgradeFlags>
- </FileUpgradeFlags>
- <UpgradeBackupLocation>
- </UpgradeBackupLocation>
- <SccProjectName>SAK</SccProjectName>
- <SccLocalPath>SAK</SccLocalPath>
- <SccAuxPath>SAK</SccAuxPath>
- <SccProvider>SAK</SccProvider>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <OutputPath>bin\Debug\</OutputPath>
- <AllowUnsafeBlocks>false</AllowUnsafeBlocks>
- <BaseAddress>285212672</BaseAddress>
- <CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
- <ConfigurationOverrideFile>
- </ConfigurationOverrideFile>
- <DefineConstants>DEBUG;TRACE</DefineConstants>
- <DocumentationFile>
- </DocumentationFile>
- <DebugSymbols>true</DebugSymbols>
- <FileAlignment>4096</FileAlignment>
- <NoStdLib>false</NoStdLib>
- <NoWarn>
- </NoWarn>
- <Optimize>false</Optimize>
- <RegisterForComInterop>false</RegisterForComInterop>
- <RemoveIntegerChecks>false</RemoveIntegerChecks>
- <TreatWarningsAsErrors>false</TreatWarningsAsErrors>
- <WarningLevel>4</WarningLevel>
- <DebugType>full</DebugType>
- <ErrorReport>prompt</ErrorReport>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <OutputPath>bin\Release\</OutputPath>
- <AllowUnsafeBlocks>false</AllowUnsafeBlocks>
- <BaseAddress>285212672</BaseAddress>
- <CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
- <ConfigurationOverrideFile>
- </ConfigurationOverrideFile>
- <DefineConstants>TRACE</DefineConstants>
- <DocumentationFile>
- </DocumentationFile>
- <DebugSymbols>false</DebugSymbols>
- <FileAlignment>4096</FileAlignment>
- <NoStdLib>false</NoStdLib>
- <NoWarn>
- </NoWarn>
- <Optimize>true</Optimize>
- <RegisterForComInterop>false</RegisterForComInterop>
- <RemoveIntegerChecks>false</RemoveIntegerChecks>
- <TreatWarningsAsErrors>false</TreatWarningsAsErrors>
- <WarningLevel>4</WarningLevel>
- <DebugType>none</DebugType>
- <ErrorReport>prompt</ErrorReport>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="System">
- <Name>System</Name>
- </Reference>
- <Reference Include="System.Data">
- <Name>System.Data</Name>
- </Reference>
- <Reference Include="System.XML">
- <Name>System.XML</Name>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <Compile Include="Arg.cs">
- <SubType>Code</SubType>
- </Compile>
- <Compile Include="GetOpt.cs">
- <SubType>Code</SubType>
- </Compile>
- </ItemGroup>
- <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
- <PropertyGroup>
- <PreBuildEvent>
- </PreBuildEvent>
- <PostBuildEvent>
- </PostBuildEvent>
- </PropertyGroup>
-</Project> \ No newline at end of file
diff --git a/getoptOLD/getopt.csproj.user b/getoptOLD/getopt.csproj.user
deleted file mode 100644
index cfcf828..0000000
--- a/getoptOLD/getopt.csproj.user
+++ /dev/null
@@ -1,58 +0,0 @@
-<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <LastOpenVersion>7.10.3077</LastOpenVersion>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ReferencePath>
- </ReferencePath>
- <CopyProjectDestinationFolder>
- </CopyProjectDestinationFolder>
- <CopyProjectUncPath>
- </CopyProjectUncPath>
- <CopyProjectOption>0</CopyProjectOption>
- <ProjectView>ProjectFiles</ProjectView>
- <ProjectTrust>0</ProjectTrust>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <EnableASPDebugging>false</EnableASPDebugging>
- <EnableASPXDebugging>false</EnableASPXDebugging>
- <EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
- <EnableSQLServerDebugging>false</EnableSQLServerDebugging>
- <RemoteDebugEnabled>false</RemoteDebugEnabled>
- <RemoteDebugMachine>
- </RemoteDebugMachine>
- <StartAction>Project</StartAction>
- <StartArguments>
- </StartArguments>
- <StartPage>
- </StartPage>
- <StartProgram>
- </StartProgram>
- <StartURL>
- </StartURL>
- <StartWorkingDirectory>
- </StartWorkingDirectory>
- <StartWithIE>true</StartWithIE>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <EnableASPDebugging>false</EnableASPDebugging>
- <EnableASPXDebugging>false</EnableASPXDebugging>
- <EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
- <EnableSQLServerDebugging>false</EnableSQLServerDebugging>
- <RemoteDebugEnabled>false</RemoteDebugEnabled>
- <RemoteDebugMachine>
- </RemoteDebugMachine>
- <StartAction>Project</StartAction>
- <StartArguments>
- </StartArguments>
- <StartPage>
- </StartPage>
- <StartProgram>
- </StartProgram>
- <StartURL>
- </StartURL>
- <StartWorkingDirectory>
- </StartWorkingDirectory>
- <StartWithIE>false</StartWithIE>
- </PropertyGroup>
-</Project> \ No newline at end of file
diff --git a/getoptOLD/getopt.csproj.vspscc b/getoptOLD/getopt.csproj.vspscc
deleted file mode 100644
index feffdec..0000000
--- a/getoptOLD/getopt.csproj.vspscc
+++ /dev/null
@@ -1,10 +0,0 @@
-""
-{
-"FILE_VERSION" = "9237"
-"ENLISTMENT_CHOICE" = "NEVER"
-"PROJECT_FILE_RELATIVE_PATH" = ""
-"NUMBER_OF_EXCLUDED_FILES" = "0"
-"ORIGINAL_PROJECT_FILE_PATH" = ""
-"NUMBER_OF_NESTED_PROJECTS" = "0"
-"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER"
-}
diff --git a/getoptOLD/getopt.sln b/getoptOLD/getopt.sln
deleted file mode 100644
index 3dab7ec..0000000
--- a/getoptOLD/getopt.sln
+++ /dev/null
@@ -1,19 +0,0 @@
-Microsoft Visual Studio Solution File, Format Version 9.00
-# Visual Studio 2005
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "getopt", "getopt.csproj", "{228B5F0B-31AE-488F-A916-B7CBB269D25F}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Release|Any CPU = Release|Any CPU
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {228B5F0B-31AE-488F-A916-B7CBB269D25F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {228B5F0B-31AE-488F-A916-B7CBB269D25F}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {228B5F0B-31AE-488F-A916-B7CBB269D25F}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {228B5F0B-31AE-488F-A916-B7CBB269D25F}.Release|Any CPU.Build.0 = Release|Any CPU
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal
diff --git a/getoptOLD/getopt.suo b/getoptOLD/getopt.suo
deleted file mode 100644
index fc0301d..0000000
--- a/getoptOLD/getopt.suo
+++ /dev/null
Binary files differ
diff --git a/getoptOLD/mssccprj.scc b/getoptOLD/mssccprj.scc
deleted file mode 100644
index 2aeb91c..0000000
--- a/getoptOLD/mssccprj.scc
+++ /dev/null
@@ -1,5 +0,0 @@
-SCC = This is a Source Code Control file
-
-[getopt.csproj]
-SCC_Aux_Path = "C:\Users\fcolin\Documents\Visual Source Safe"
-SCC_Project_Name = "$/CSharp/getopt", RBIAAAAA
diff --git a/getoptOLD/vssver2.scc b/getoptOLD/vssver2.scc
deleted file mode 100644
index 44d6a95..0000000
--- a/getoptOLD/vssver2.scc
+++ /dev/null
Binary files differ