You can subscribe to this list here.
2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(128) |
Jun
(97) |
Jul
(13) |
Aug
(40) |
Sep
(50) |
Oct
(27) |
Nov
(7) |
Dec
(15) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2009 |
Jan
(18) |
Feb
(47) |
Mar
(7) |
Apr
|
May
|
Jun
|
Jul
(32) |
Aug
|
Sep
(14) |
Oct
(22) |
Nov
|
Dec
|
From: <br...@us...> - 2008-08-17 22:38:27
|
Revision: 332 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=332&view=rev Author: brus07 Date: 2008-08-17 22:38:37 +0000 (Sun, 17 Aug 2008) Log Message: ----------- Added *.suo files to ignore list. Property Changed: ---------------- ACMServer/trunk/sharp tester/SourceTest 2.0/ Property changes on: ACMServer/trunk/sharp tester/SourceTest 2.0 ___________________________________________________________________ Added: svn:ignore + *.suo This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <Or...@us...> - 2008-08-17 22:28:45
|
Revision: 331 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=331&view=rev Author: Oracle_ Date: 2008-08-17 22:28:54 +0000 (Sun, 17 Aug 2008) Log Message: ----------- Deleted *.suo file. Removed Paths: ------------- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0.suo This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <Or...@us...> - 2008-08-17 22:24:35
|
Revision: 330 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=330&view=rev Author: Oracle_ Date: 2008-08-17 22:24:45 +0000 (Sun, 17 Aug 2008) Log Message: ----------- Changed framework to 2.0 Modified Paths: -------------- ACMServer/trunk/sharp tester/SourceTest 2.0/Load/Load.csproj ACMServer/trunk/sharp tester/SourceTest 2.0/Main/Main.csproj ACMServer/trunk/sharp tester/SourceTest 2.0/Plugin/Plugin.csproj ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/DLLTester.csproj ACMServer/trunk/sharp tester/SourceTest 2.0/Test/Test.vcproj ACMServer/trunk/sharp tester/SourceTest 2.0/VirtualPlugin/VirtualPlugin.csproj Modified: ACMServer/trunk/sharp tester/SourceTest 2.0/Load/Load.csproj =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/Load/Load.csproj 2008-08-17 21:40:55 UTC (rev 329) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/Load/Load.csproj 2008-08-17 22:24:45 UTC (rev 330) @@ -10,7 +10,7 @@ <AppDesignerFolder>Properties</AppDesignerFolder> <RootNamespace>Load</RootNamespace> <AssemblyName>Load</AssemblyName> - <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> + <TargetFrameworkVersion>v2.0</TargetFrameworkVersion> <FileAlignment>512</FileAlignment> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> Modified: ACMServer/trunk/sharp tester/SourceTest 2.0/Main/Main.csproj =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/Main/Main.csproj 2008-08-17 21:40:55 UTC (rev 329) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/Main/Main.csproj 2008-08-17 22:24:45 UTC (rev 330) @@ -10,7 +10,7 @@ <AppDesignerFolder>Properties</AppDesignerFolder> <RootNamespace>Main</RootNamespace> <AssemblyName>Main</AssemblyName> - <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> + <TargetFrameworkVersion>v2.0</TargetFrameworkVersion> <FileAlignment>512</FileAlignment> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> Modified: ACMServer/trunk/sharp tester/SourceTest 2.0/Plugin/Plugin.csproj =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/Plugin/Plugin.csproj 2008-08-17 21:40:55 UTC (rev 329) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/Plugin/Plugin.csproj 2008-08-17 22:24:45 UTC (rev 330) @@ -10,7 +10,7 @@ <AppDesignerFolder>Properties</AppDesignerFolder> <RootNamespace>Plugin</RootNamespace> <AssemblyName>Plugin</AssemblyName> - <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> + <TargetFrameworkVersion>v2.0</TargetFrameworkVersion> <FileAlignment>512</FileAlignment> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> Modified: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/DLLTester.csproj =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/DLLTester.csproj 2008-08-17 21:40:55 UTC (rev 329) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/DLLTester.csproj 2008-08-17 22:24:45 UTC (rev 330) @@ -10,7 +10,7 @@ <AppDesignerFolder>Properties</AppDesignerFolder> <RootNamespace>SourceTest_2._0</RootNamespace> <AssemblyName>SourceTest 2.0</AssemblyName> - <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> + <TargetFrameworkVersion>v2.0</TargetFrameworkVersion> <FileAlignment>512</FileAlignment> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -32,15 +32,6 @@ </PropertyGroup> <ItemGroup> <Reference Include="System" /> - <Reference Include="System.Core"> - <RequiredTargetFramework>3.5</RequiredTargetFramework> - </Reference> - <Reference Include="System.Xml.Linq"> - <RequiredTargetFramework>3.5</RequiredTargetFramework> - </Reference> - <Reference Include="System.Data.DataSetExtensions"> - <RequiredTargetFramework>3.5</RequiredTargetFramework> - </Reference> <Reference Include="System.Data" /> <Reference Include="System.Xml" /> </ItemGroup> Modified: ACMServer/trunk/sharp tester/SourceTest 2.0/Test/Test.vcproj =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/Test/Test.vcproj 2008-08-17 21:40:55 UTC (rev 329) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/Test/Test.vcproj 2008-08-17 22:24:45 UTC (rev 330) @@ -6,7 +6,7 @@ ProjectGUID="{036108C1-B126-4DC6-95D6-4D6543C8BFF7}" RootNamespace="Test" Keyword="ManagedCProj" - TargetFrameworkVersion="196613" + TargetFrameworkVersion="131072" > <Platforms> <Platform Modified: ACMServer/trunk/sharp tester/SourceTest 2.0/VirtualPlugin/VirtualPlugin.csproj =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/VirtualPlugin/VirtualPlugin.csproj 2008-08-17 21:40:55 UTC (rev 329) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/VirtualPlugin/VirtualPlugin.csproj 2008-08-17 22:24:45 UTC (rev 330) @@ -10,7 +10,7 @@ <AppDesignerFolder>Properties</AppDesignerFolder> <RootNamespace>VirtualPlugin</RootNamespace> <AssemblyName>VirtualPlugin</AssemblyName> - <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> + <TargetFrameworkVersion>v2.0</TargetFrameworkVersion> <FileAlignment>512</FileAlignment> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <Or...@us...> - 2008-08-17 21:40:45
|
Revision: 329 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=329&view=rev Author: Oracle_ Date: 2008-08-17 21:40:55 +0000 (Sun, 17 Aug 2008) Log Message: ----------- Fixed bug with DoubleSecure. Modified Paths: -------------- ACMServer/trunk/sharp tester/SourceTest 2.0/Test/SecureClass.cpp Modified: ACMServer/trunk/sharp tester/SourceTest 2.0/Test/SecureClass.cpp =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/Test/SecureClass.cpp 2008-08-17 20:34:53 UTC (rev 328) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/Test/SecureClass.cpp 2008-08-17 21:40:55 UTC (rev 329) @@ -339,7 +339,13 @@ bool DoubleSecure::CreateProc(LPWSTR lpApplicationName,BOOL bInheritHandles,DWORD dwCreationFlags,LPSTARTUPINFOW lpStartupInfo) { - return usersec->CreateProc(lpApplicationName,bInheritHandles,dwCreationFlags,lpStartupInfo); + bool res=usersec->CreateProc(lpApplicationName,bInheritHandles,dwCreationFlags,lpStartupInfo); + if (res) + { + this->process=usersec->process; + this->thread=usersec->thread; + } + return res; } bool DoubleSecure::CheckSecure() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <Or...@us...> - 2008-08-17 20:34:46
|
Revision: 328 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=328&view=rev Author: Oracle_ Date: 2008-08-17 20:34:53 +0000 (Sun, 17 Aug 2008) Log Message: ----------- Compiled at 2008 studio. Modified Paths: -------------- ACMServer/trunk/sharp tester/Checker/Checker/Checker.csproj Modified: ACMServer/trunk/sharp tester/Checker/Checker/Checker.csproj =================================================================== --- ACMServer/trunk/sharp tester/Checker/Checker/Checker.csproj 2008-08-17 20:33:42 UTC (rev 327) +++ ACMServer/trunk/sharp tester/Checker/Checker/Checker.csproj 2008-08-17 20:34:53 UTC (rev 328) @@ -1,20 +1,25 @@ -<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> +<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5"> <PropertyGroup> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <ProductVersion>8.0.50727</ProductVersion> + <ProductVersion>9.0.21022</ProductVersion> <SchemaVersion>2.0</SchemaVersion> <ProjectGuid>{BAFD4E93-B37A-416F-807D-E2515ECB6498}</ProjectGuid> <OutputType>Library</OutputType> <AppDesignerFolder>Properties</AppDesignerFolder> <RootNamespace>Checker</RootNamespace> <AssemblyName>Checker</AssemblyName> + <FileUpgradeFlags> + </FileUpgradeFlags> + <OldToolsVersion>2.0</OldToolsVersion> + <UpgradeBackupLocation> + </UpgradeBackupLocation> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <DebugSymbols>true</DebugSymbols> <DebugType>full</DebugType> <Optimize>false</Optimize> - <OutputPath>bin\Debug\</OutputPath> + <OutputPath>..\SourceTest 2.0\bin\Debug\</OutputPath> <DefineConstants>DEBUG;TRACE</DefineConstants> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <Or...@us...> - 2008-08-17 20:33:32
|
Revision: 327 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=327&view=rev Author: Oracle_ Date: 2008-08-17 20:33:42 +0000 (Sun, 17 Aug 2008) Log Message: ----------- Fixed bug. Modified Paths: -------------- ACMServer/trunk/sharp tester/Checker/Checker/Checker.cs Modified: ACMServer/trunk/sharp tester/Checker/Checker/Checker.cs =================================================================== --- ACMServer/trunk/sharp tester/Checker/Checker/Checker.cs 2008-08-17 20:30:41 UTC (rev 326) +++ ACMServer/trunk/sharp tester/Checker/Checker/Checker.cs 2008-08-17 20:33:42 UTC (rev 327) @@ -27,7 +27,7 @@ { this.input = input; this.output = output; - this.correctOutput = output; + this.correctOutput = correctOutput; this.scriptPath = scriptPath; } @@ -36,10 +36,11 @@ public CheckResult Check() { - Script scr = Script.Compile(File.ReadAllText(scriptPath)); - scr.AddBuildInObject(input); - scr.AddBuildInObject(output); - scr.AddBuildInObject(correctOutput); + string SRC = File.ReadAllText(scriptPath); + Script scr = Script.Compile(SRC); + scr.AddObject("input", input); + scr.AddObject("output", output); + scr.AddObject("correctOutput",correctOutput); scr.Execute(); string result = scr.Lookup("result").ToString(); return (CheckResult)Enum.Parse(typeof(CheckResult), result); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <Or...@us...> - 2008-08-17 20:30:38
|
Revision: 326 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=326&view=rev Author: Oracle_ Date: 2008-08-17 20:30:41 +0000 (Sun, 17 Aug 2008) Log Message: ----------- Added new version Added Paths: ----------- ACMServer/trunk/sharp tester/SourceTest 2.0/Load/ ACMServer/trunk/sharp tester/SourceTest 2.0/Load/Load.csproj ACMServer/trunk/sharp tester/SourceTest 2.0/Load/LoaderClass.cs ACMServer/trunk/sharp tester/SourceTest 2.0/Load/Properties/ ACMServer/trunk/sharp tester/SourceTest 2.0/Load/Properties/AssemblyInfo.cs ACMServer/trunk/sharp tester/SourceTest 2.0/Main/ ACMServer/trunk/sharp tester/SourceTest 2.0/Main/Main.csproj ACMServer/trunk/sharp tester/SourceTest 2.0/Main/Properties/ ACMServer/trunk/sharp tester/SourceTest 2.0/Main/Properties/AssemblyInfo.cs ACMServer/trunk/sharp tester/SourceTest 2.0/Main/TestEnvClass.cs ACMServer/trunk/sharp tester/SourceTest 2.0/Plugin/ ACMServer/trunk/sharp tester/SourceTest 2.0/Plugin/Plugin.csproj ACMServer/trunk/sharp tester/SourceTest 2.0/Plugin/PluginClass.cs ACMServer/trunk/sharp tester/SourceTest 2.0/Plugin/Properties/ ACMServer/trunk/sharp tester/SourceTest 2.0/Plugin/Properties/AssemblyInfo.cs ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/DLLTester.csproj ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/Program.cs ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/Properties/ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/Properties/AssemblyInfo.cs ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/AllowedFunc.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/InData.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/TesterInData.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/compiler/ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/compiler/D7.bat ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/compiler/DCC32.exe here.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/compiler/dcc32.cfg ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/compiler/includeD7/ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/compiler/includeD7/includes here.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/compiler/rlink32.dll here.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/out.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/ProblemData.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test1/ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test1/in.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test1/out.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test10/ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test10/in.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test10/out.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test11/ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test11/in.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test11/out.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test12/ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test12/in.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test12/out.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test13/ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test13/in.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test13/out.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test14/ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test14/in.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test14/out.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test15/ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test15/in.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test15/out.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test2/ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test2/in.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test2/out.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test3/ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test3/in.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test3/out.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test4/ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test4/in.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test4/out.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test5/ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test5/in.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test5/out.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test6/ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test6/in.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test6/out.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test7/ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test7/in.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test7/out.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test8/ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test8/in.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test8/out.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test9/ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test9/in.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test9/out.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/scriptExample.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/source.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/err1.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/err10.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/err11.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/err12.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/err13.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/err14.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/err15.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/err2.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/err3.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/err4.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/err5.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/err6.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/err7.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/err8.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/err9.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/out1.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/out10.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/out11.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/out12.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/out13.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/out14.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/out15.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/out2.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/out3.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/out4.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/out5.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/out6.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/out7.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/out8.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/out9.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/source.exe ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/source.txt ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0.sln ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0.suo ACMServer/trunk/sharp tester/SourceTest 2.0/Test/ ACMServer/trunk/sharp tester/SourceTest 2.0/Test/AdvAPI32.lib here.txt ACMServer/trunk/sharp tester/SourceTest 2.0/Test/AssemblyInfo.cpp ACMServer/trunk/sharp tester/SourceTest 2.0/Test/CompileClass.cpp ACMServer/trunk/sharp tester/SourceTest 2.0/Test/CompileClass.h ACMServer/trunk/sharp tester/SourceTest 2.0/Test/DbgHelp.lib here.txt ACMServer/trunk/sharp tester/SourceTest 2.0/Test/NetAPI32.lib here.txt ACMServer/trunk/sharp tester/SourceTest 2.0/Test/SecureClass.cpp ACMServer/trunk/sharp tester/SourceTest 2.0/Test/SecureClass.h ACMServer/trunk/sharp tester/SourceTest 2.0/Test/Test.cpp ACMServer/trunk/sharp tester/SourceTest 2.0/Test/Test.h ACMServer/trunk/sharp tester/SourceTest 2.0/Test/Test.vcproj ACMServer/trunk/sharp tester/SourceTest 2.0/Test/User32.lib here.txt ACMServer/trunk/sharp tester/SourceTest 2.0/Test/UserEnv.lib here.txt ACMServer/trunk/sharp tester/SourceTest 2.0/VirtualPlugin/ ACMServer/trunk/sharp tester/SourceTest 2.0/VirtualPlugin/Properties/ ACMServer/trunk/sharp tester/SourceTest 2.0/VirtualPlugin/Properties/AssemblyInfo.cs ACMServer/trunk/sharp tester/SourceTest 2.0/VirtualPlugin/VirtPlugin.cs ACMServer/trunk/sharp tester/SourceTest 2.0/VirtualPlugin/VirtualPlugin.csproj Added: ACMServer/trunk/sharp tester/SourceTest 2.0/Load/Load.csproj =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/Load/Load.csproj (rev 0) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/Load/Load.csproj 2008-08-17 20:30:41 UTC (rev 326) @@ -0,0 +1,54 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> + <ProductVersion>9.0.21022</ProductVersion> + <SchemaVersion>2.0</SchemaVersion> + <ProjectGuid>{77676781-AE80-47DB-9A4D-204B97BE955D}</ProjectGuid> + <OutputType>Library</OutputType> + <AppDesignerFolder>Properties</AppDesignerFolder> + <RootNamespace>Load</RootNamespace> + <AssemblyName>Load</AssemblyName> + <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> + <FileAlignment>512</FileAlignment> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + <DebugSymbols>true</DebugSymbols> + <DebugType>full</DebugType> + <Optimize>false</Optimize> + <OutputPath>bin\Debug\</OutputPath> + <DefineConstants>DEBUG;TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> + <DebugType>pdbonly</DebugType> + <Optimize>true</Optimize> + <OutputPath>bin\Release\</OutputPath> + <DefineConstants>TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <ItemGroup> + <Reference Include="System" /> + </ItemGroup> + <ItemGroup> + <Compile Include="LoaderClass.cs" /> + <Compile Include="Properties\AssemblyInfo.cs" /> + </ItemGroup> + <ItemGroup> + <ProjectReference Include="..\VirtualPlugin\VirtualPlugin.csproj"> + <Project>{6AC363DA-BBBF-4809-8D42-A5391A918630}</Project> + <Name>VirtualPlugin</Name> + </ProjectReference> + </ItemGroup> + <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> + <!-- To modify your build process, add your task inside one of the targets below and uncomment it. + Other similar extension points exist, see Microsoft.Common.targets. + <Target Name="BeforeBuild"> + </Target> + <Target Name="AfterBuild"> + </Target> + --> +</Project> \ No newline at end of file Added: ACMServer/trunk/sharp tester/SourceTest 2.0/Load/LoaderClass.cs =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/Load/LoaderClass.cs (rev 0) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/Load/LoaderClass.cs 2008-08-17 20:30:41 UTC (rev 326) @@ -0,0 +1,219 @@ +using System; +using System.Text; +using System.IO; +using VirtualPlugin; +using System.Reflection; + +namespace Load +{ + public class DataLoader + { + public string path; + public int CodeLimit=65536; + public int CompilationTimeLimit=10000; + public int MemoryLimit=67108864; + public int OutputLimit=20000000; + public int RealTimeLimit=20000; + public int TimeLimit=1000; + public int MaxThreads=2; + public int PerTestCount=2; + public string InputName="in.txt"; + public string OutputName="out.txt"; + public string PointFileName="points.txt"; + public string TestFolderName="test*"; + public string Checker=""; + public string CheckPlugin = ""; + + public DataLoader(string Path) + { + path=Path; + } + + public bool Load() + { + if (!File.Exists(path)) + return false; + StreamReader f = File.OpenText(path); + while (!f.EndOfStream) + { + string[] param=f.ReadLine().Split(' '); + switch (param[0]) + { + case "CodeLimit:": CodeLimit = Convert.ToInt32(param[1]); break; + case "CompilationTimeLimit:": CompilationTimeLimit = Convert.ToInt32(param[1]); break; + case "MemoryLimit:": MemoryLimit = Convert.ToInt32(param[1]); break; + case "OutputLimit:": OutputLimit = Convert.ToInt32(param[1]); break; + case "RealTimeLimit:": RealTimeLimit = Convert.ToInt32(param[1]); break; + case "TimeLimit:": TimeLimit = Convert.ToInt32(param[1]); break; + case "MaxThreads:": MaxThreads = Convert.ToInt32(param[1]); break; + case "PerTestCount:": PerTestCount = Convert.ToInt32(param[1]); break; + case "InputName:": InputName = param[1]; break; + case "OutputName:": OutputName = param[1]; break; + case "PointFileName:": PointFileName = param[1]; break; + case "TestFolderName:": TestFolderName = param[1]; break; + case "Checker:": Checker = param[1]; break; + case "CheckPlugin:": CheckPlugin = param[1]; break; + } + } + return true; + } + } + + public class Test + { + public string input; + public string output; + public int points; + + public string InPath; + public string OutPath; + public string PointPath; + + public Test() + { + + } + + public void Load(string inname,string outname,string pointname) + { + InPath = inname; + OutPath = outname; + PointPath = pointname; + if (File.Exists(inname)) + input = File.OpenText(inname).ReadToEnd(); + else + input = ""; + + if (File.Exists(outname)) + output = File.OpenText(outname).ReadToEnd(); + else + output = ""; + + if (File.Exists(pointname)) + points = Convert.ToInt32(File.OpenText(pointname).ReadToEnd()); + else + points = 1; + } + } + + public class TestLoader + { + private string MaskToString(string mask, int numb) + { + int star; + if ((star=mask.IndexOf('*')) == -1) + return mask; + int cnt=0; + while (star < mask.Length && mask[star] == '*') + { + star++; + cnt++; + } + string NS = numb.ToString(); + while (NS.Length < cnt) NS = '0' + NS; + return mask.Replace(mask.Substring(star - cnt, cnt), NS); ; + } + + public string InName; + public string OutName; + public string PointName; + public string FolderName; + public string ProblemPath; + public Test[] tests; + + public TestLoader(string _InName, string _OutName, string _PointName, string _FolderName, string _ProblemPath) + { + InName = _InName; + OutName = _OutName; + PointName = _PointName; + FolderName = _FolderName; + ProblemPath = _ProblemPath; + } + + public void Load() + { + int cnt = 0; + while (true) + { + string curInPath = ProblemPath + MaskToString(FolderName,cnt+1)+"\\"+MaskToString(InName,cnt+1); + string curOutPath = ProblemPath + MaskToString(FolderName, cnt+1) + "\\" + MaskToString(OutName, cnt+1); + string curPointPath = ProblemPath + MaskToString(FolderName, cnt+1) + "\\" + MaskToString(PointName, cnt+1); + if (File.Exists(curInPath)||File.Exists(curOutPath)||File.Exists(curPointPath)) + cnt++; + else + break; + } + tests = new Test[cnt]; + for (int i = 1; i <= cnt; i++) + { + string curInPath = ProblemPath + MaskToString(FolderName, i) + "\\" + MaskToString(InName, i); + string curOutPath = ProblemPath + MaskToString(FolderName, i) + "\\" + MaskToString(OutName, i); + string curPointPath = ProblemPath + MaskToString(FolderName, i) + "\\" + MaskToString(PointName, i); + tests[i - 1] = new Test(); + tests[i - 1].Load(curInPath, curOutPath, curPointPath); + } + } + } + + public class PluginLoader + { + public VirtPlugin p; + public string filename; + + public PluginLoader(string FileName) + { + filename = FileName; + } + + public bool Load() + { + if (File.Exists(filename) == false) + { + return false; + } + + Assembly assembly; + try + { + assembly = Assembly.LoadFrom(filename); + } + catch + { + return false; + } + if (assembly != null) + { + Type[] types = assembly.GetExportedTypes(); + foreach (Type t in types) + { + try + { + if (t.IsClass && !t.IsAbstract) + if (t.GetInterface(typeof(VirtPlugin).FullName) != null || t.IsSubclassOf(typeof(VirtPlugin))) + { + p = (VirtPlugin)Activator.CreateInstance(t); + return true; + } + } + catch (System.Reflection.TargetInvocationException) + { + + } + catch (System.MissingMethodException) + { + + } + catch (System.InvalidCastException) + { + + } + catch + { + + } + } + } + return false; + } + } +} Added: ACMServer/trunk/sharp tester/SourceTest 2.0/Load/Properties/AssemblyInfo.cs =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/Load/Properties/AssemblyInfo.cs (rev 0) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/Load/Properties/AssemblyInfo.cs 2008-08-17 20:30:41 UTC (rev 326) @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Load")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Home")] +[assembly: AssemblyProduct("Load")] +[assembly: AssemblyCopyright("Copyright © Home 2008")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("91b77ead-03cd-40a1-b86f-62ec1cb2fe98")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] Added: ACMServer/trunk/sharp tester/SourceTest 2.0/Main/Main.csproj =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/Main/Main.csproj (rev 0) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/Main/Main.csproj 2008-08-17 20:30:41 UTC (rev 326) @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> + <ProductVersion>9.0.21022</ProductVersion> + <SchemaVersion>2.0</SchemaVersion> + <ProjectGuid>{A9377496-295B-4271-A078-C7A925CC2CD8}</ProjectGuid> + <OutputType>Library</OutputType> + <AppDesignerFolder>Properties</AppDesignerFolder> + <RootNamespace>Main</RootNamespace> + <AssemblyName>Main</AssemblyName> + <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> + <FileAlignment>512</FileAlignment> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + <DebugSymbols>true</DebugSymbols> + <DebugType>full</DebugType> + <Optimize>false</Optimize> + <OutputPath>bin\Debug\</OutputPath> + <DefineConstants>DEBUG;TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> + <DebugType>pdbonly</DebugType> + <Optimize>true</Optimize> + <OutputPath>bin\Release\</OutputPath> + <DefineConstants>TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <ItemGroup> + <Reference Include="System" /> + </ItemGroup> + <ItemGroup> + <Compile Include="TestEnvClass.cs" /> + <Compile Include="Properties\AssemblyInfo.cs" /> + </ItemGroup> + <ItemGroup> + <ProjectReference Include="..\Load\Load.csproj"> + <Project>{77676781-AE80-47DB-9A4D-204B97BE955D}</Project> + <Name>Load</Name> + </ProjectReference> + <ProjectReference Include="..\Test\Test.vcproj"> + <Project>{036108C1-B126-4DC6-95D6-4D6543C8BFF7}</Project> + <Name>Test</Name> + </ProjectReference> + </ItemGroup> + <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> + <!-- To modify your build process, add your task inside one of the targets below and uncomment it. + Other similar extension points exist, see Microsoft.Common.targets. + <Target Name="BeforeBuild"> + </Target> + <Target Name="AfterBuild"> + </Target> + --> +</Project> \ No newline at end of file Added: ACMServer/trunk/sharp tester/SourceTest 2.0/Main/Properties/AssemblyInfo.cs =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/Main/Properties/AssemblyInfo.cs (rev 0) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/Main/Properties/AssemblyInfo.cs 2008-08-17 20:30:41 UTC (rev 326) @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Main")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Home")] +[assembly: AssemblyProduct("Main")] +[assembly: AssemblyCopyright("Copyright © Home 2008")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("42a47bfc-a4ee-4434-a87d-cb1708d36b1b")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] Added: ACMServer/trunk/sharp tester/SourceTest 2.0/Main/TestEnvClass.cs =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/Main/TestEnvClass.cs (rev 0) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/Main/TestEnvClass.cs 2008-08-17 20:30:41 UTC (rev 326) @@ -0,0 +1,40 @@ +using System; +using System.IO; +using Test; +using Load; + +namespace Main +{ + public class TestEnv + { + public string ProblemPath; + public string TempPath; + public string CompPath; + public string Source; + public Compiler comp; + public Runner run; + + public TestEnv(string Source,string CompPath,string TempPath,string ProblemPath) + { + this.Source = Source; + this.TempPath = Path.GetFullPath(TempPath); + this.CompPath = Path.GetFullPath(CompPath); + this.ProblemPath = Path.GetFullPath(ProblemPath); + } + + public void Compile() + { + DataLoader dat = new DataLoader(ProblemPath + "ProblemData.txt"); + dat.Load(); + string[] InData=System.IO.File.ReadAllLines("TesterInData.txt"); + comp=new Compiler(CompPath,Source,TempPath,dat.CompilationTimeLimit,Convert.ToInt32(InData[0])); + comp.Compile(); + } + + public void RunAllTests(SecureType SecType) + { + run = new Runner(SecType,ProblemPath,comp.ExeFile,TempPath,comp.CONST_SLEEP); + run.RunTests(); + } + } +} Added: ACMServer/trunk/sharp tester/SourceTest 2.0/Plugin/Plugin.csproj =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/Plugin/Plugin.csproj (rev 0) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/Plugin/Plugin.csproj 2008-08-17 20:30:41 UTC (rev 326) @@ -0,0 +1,54 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> + <ProductVersion>9.0.21022</ProductVersion> + <SchemaVersion>2.0</SchemaVersion> + <ProjectGuid>{C43666B0-F0AF-4122-A0A8-8C2ED951BC4E}</ProjectGuid> + <OutputType>Library</OutputType> + <AppDesignerFolder>Properties</AppDesignerFolder> + <RootNamespace>Plugin</RootNamespace> + <AssemblyName>Plugin</AssemblyName> + <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> + <FileAlignment>512</FileAlignment> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + <DebugSymbols>true</DebugSymbols> + <DebugType>full</DebugType> + <Optimize>false</Optimize> + <OutputPath>bin\Debug\</OutputPath> + <DefineConstants>DEBUG;TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> + <DebugType>pdbonly</DebugType> + <Optimize>true</Optimize> + <OutputPath>bin\Release\</OutputPath> + <DefineConstants>TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <ItemGroup> + <Reference Include="System" /> + </ItemGroup> + <ItemGroup> + <Compile Include="PluginClass.cs" /> + <Compile Include="Properties\AssemblyInfo.cs" /> + </ItemGroup> + <ItemGroup> + <ProjectReference Include="..\VirtualPlugin\VirtualPlugin.csproj"> + <Project>{6AC363DA-BBBF-4809-8D42-A5391A918630}</Project> + <Name>VirtualPlugin</Name> + </ProjectReference> + </ItemGroup> + <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> + <!-- To modify your build process, add your task inside one of the targets below and uncomment it. + Other similar extension points exist, see Microsoft.Common.targets. + <Target Name="BeforeBuild"> + </Target> + <Target Name="AfterBuild"> + </Target> + --> +</Project> \ No newline at end of file Added: ACMServer/trunk/sharp tester/SourceTest 2.0/Plugin/PluginClass.cs =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/Plugin/PluginClass.cs (rev 0) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/Plugin/PluginClass.cs 2008-08-17 20:30:41 UTC (rev 326) @@ -0,0 +1,40 @@ +using System; +using System.Collections.Generic; +using System.Text; +using VirtualPlugin; + +namespace Plugin +{ + public class Plugin:VirtPlugin + { + public override bool TimeLimit(int UsedTime, int TL, ref string Details) + { + Details = ""; + return UsedTime > TL; + } + + public override bool MemoryLimit(int UsedMemory, int ML, ref string Details) + { + Details = ""; + return UsedMemory > ML; + } + + public override bool OutputLimit(int OutputSize, int OL, ref string Details) + { + Details = ""; + return OutputSize > OL; + } + + public override bool RealTimeLimit(int UsedRealTime, int RTL, ref string Details) + { + Details = ""; + return UsedRealTime > RTL; + } + + public override bool CodeLimit(string source, int CL, ref string Details) + { + Details = ""; + return source.Length > CL; + } + } +} Added: ACMServer/trunk/sharp tester/SourceTest 2.0/Plugin/Properties/AssemblyInfo.cs =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/Plugin/Properties/AssemblyInfo.cs (rev 0) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/Plugin/Properties/AssemblyInfo.cs 2008-08-17 20:30:41 UTC (rev 326) @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Plugin")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Home")] +[assembly: AssemblyProduct("Plugin")] +[assembly: AssemblyCopyright("Copyright © Home 2008")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("515fab2a-b9c0-4bfe-aae4-cefe7d7cb77e")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/DLLTester.csproj =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/DLLTester.csproj (rev 0) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/DLLTester.csproj 2008-08-17 20:30:41 UTC (rev 326) @@ -0,0 +1,69 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> + <ProductVersion>9.0.21022</ProductVersion> + <SchemaVersion>2.0</SchemaVersion> + <ProjectGuid>{7FA90C26-FD23-4558-A3EE-DBD74A3311F8}</ProjectGuid> + <OutputType>Exe</OutputType> + <AppDesignerFolder>Properties</AppDesignerFolder> + <RootNamespace>SourceTest_2._0</RootNamespace> + <AssemblyName>SourceTest 2.0</AssemblyName> + <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> + <FileAlignment>512</FileAlignment> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + <DebugSymbols>true</DebugSymbols> + <DebugType>full</DebugType> + <Optimize>false</Optimize> + <OutputPath>bin\Debug\</OutputPath> + <DefineConstants>DEBUG;TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> + <DebugType>pdbonly</DebugType> + <Optimize>true</Optimize> + <OutputPath>bin\Release\</OutputPath> + <DefineConstants>TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <ItemGroup> + <Reference Include="System" /> + <Reference Include="System.Core"> + <RequiredTargetFramework>3.5</RequiredTargetFramework> + </Reference> + <Reference Include="System.Xml.Linq"> + <RequiredTargetFramework>3.5</RequiredTargetFramework> + </Reference> + <Reference Include="System.Data.DataSetExtensions"> + <RequiredTargetFramework>3.5</RequiredTargetFramework> + </Reference> + <Reference Include="System.Data" /> + <Reference Include="System.Xml" /> + </ItemGroup> + <ItemGroup> + <Compile Include="Program.cs" /> + <Compile Include="Properties\AssemblyInfo.cs" /> + </ItemGroup> + <ItemGroup> + <ProjectReference Include="..\Main\Main.csproj"> + <Project>{A9377496-295B-4271-A078-C7A925CC2CD8}</Project> + <Name>Main</Name> + </ProjectReference> + <ProjectReference Include="..\Test\Test.vcproj"> + <Project>{036108C1-B126-4DC6-95D6-4D6543C8BFF7}</Project> + <Name>Test</Name> + </ProjectReference> + </ItemGroup> + <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> + <!-- To modify your build process, add your task inside one of the targets below and uncomment it. + Other similar extension points exist, see Microsoft.Common.targets. + <Target Name="BeforeBuild"> + </Target> + <Target Name="AfterBuild"> + </Target> + --> +</Project> \ No newline at end of file Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/Program.cs =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/Program.cs (rev 0) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/Program.cs 2008-08-17 20:30:41 UTC (rev 326) @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.IO; +using Main; +using Test; + +namespace SourceTest +{ + class Program + { + static void Main(string[] args) + { + string[] data=File.ReadAllLines("InData.txt"); + TestEnv test = new TestEnv(File.ReadAllText("source.txt"),data[0],data[1],data[2]); + test.Compile(); + Console.WriteLine("Compile result: {0}, details: {1}, usedtime:{2}",test.comp.Result.ToString(),test.comp.Details,test.comp.UsedTime); + Console.WriteLine("Comp Output: {0}", test.comp.CompilerOutput); + if (test.comp.Result == Test.CompRes.OK) + { + test.RunAllTests(SecureType.Double); + + for (int i = 0; i < test.run.results.Length; i++) + { + Console.WriteLine("Test #{0} result: {1}, details: {2}, usedtime:{3}, usedRealTime: {4}, usedmemory: {5}", i + 1, + test.run.results[i].res, test.run.results[i].Details, test.run.results[i].UsedTime, test.run.results[i].UsedRealTime, test.run.results[i].UsedMemory); + } + } + Console.ReadKey(); + } + } +} Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/Properties/AssemblyInfo.cs =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/Properties/AssemblyInfo.cs (rev 0) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/Properties/AssemblyInfo.cs 2008-08-17 20:30:41 UTC (rev 326) @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("SourceTest 2.0")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Home")] +[assembly: AssemblyProduct("SourceTest 2.0")] +[assembly: AssemblyCopyright("Copyright © Home 2008")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("aeb8bd6d-2d70-4d0f-a8b3-5e75bb3bf7f3")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/AllowedFunc.txt =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/AllowedFunc.txt (rev 0) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/AllowedFunc.txt 2008-08-17 20:30:41 UTC (rev 326) @@ -0,0 +1,57 @@ +kernel32.dll DeleteCriticalSection +kernel32.dll LeaveCriticalSection +kernel32.dll EnterCriticalSection +kernel32.dll InitializeCriticalSection +kernel32.dll VirtualFree +kernel32.dll VirtualAlloc +kernel32.dll LocalFree +kernel32.dll LocalAlloc +kernel32.dll GetVersion +kernel32.dll GetCurrentThreadId +kernel32.dll GetThreadLocale +kernel32.dll GetStartupInfoA +kernel32.dll GetLocaleInfoA +kernel32.dll GetCommandLineA +kernel32.dll FreeLibrary +kernel32.dll ExitProcess +kernel32.dll WriteFile +kernel32.dll UnhandledExceptionFilter +kernel32.dll RtlUnwind +kernel32.dll RaiseException +kernel32.dll GetStdHandle +user32.dll GetKeyboardType +user32.dll MessageBoxA +advapi32.dll RegQueryValueExA +advapi32.dll RegOpenKeyExA +advapi32.dll RegCloseKey +kernel32.dll TlsSetValue +kernel32.dll TlsGetValue +kernel32.dll GetModuleHandleA +kernel32.dll WideCharToMultiByte +kernel32.dll lstrlenA +kernel32.dll lstrcpynA +kernel32.dll LoadLibraryExA +kernel32.dll GetProcAddress +kernel32.dll GetModuleFileNameA +kernel32.dll FindFirstFileA +kernel32.dll FindClose +user32.dll LoadStringA +user32.dll CharNextA +oleaut32.dll SysFreeString +kernel32.dll VirtualQuery +kernel32.dll GetVersionExA +kernel32.dll GetStringTypeExA +kernel32.dll GetDiskFreeSpaceA +kernel32.dll GetCPInfo +kernel32.dll GetACP +kernel32.dll EnumCalendarInfoA +user32.dll GetSystemMetrics +user32.dll CharToOemA +kernel32.dll GetLastError +kernel32.dll SetFilePointer +kernel32.dll SetEndOfFile +kernel32.dll ReadFile +kernel32.dll GetFileSize +kernel32.dll GetFileType +kernel32.dll CreateFileA +kernel32.dll CloseHandle \ No newline at end of file Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/InData.txt =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/InData.txt (rev 0) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/InData.txt 2008-08-17 20:30:41 UTC (rev 326) @@ -0,0 +1,3 @@ +Compiler\D7.bat +Temp\ +Problem\ \ No newline at end of file Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/TesterInData.txt =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/TesterInData.txt (rev 0) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/TesterInData.txt 2008-08-17 20:30:41 UTC (rev 326) @@ -0,0 +1,3 @@ +100 +TestingUser +USER12345 \ No newline at end of file Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/compiler/D7.bat =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/compiler/D7.bat (rev 0) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/compiler/D7.bat 2008-08-17 20:30:41 UTC (rev 326) @@ -0,0 +1 @@ +DCC32.EXE -CC %1 -E%2 \ No newline at end of file Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/compiler/dcc32.cfg =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/compiler/dcc32.cfg (rev 0) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/compiler/dcc32.cfg 2008-08-17 20:30:41 UTC (rev 326) @@ -0,0 +1 @@ +-u"includeD7" Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/ProblemData.txt =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/ProblemData.txt (rev 0) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/ProblemData.txt 2008-08-17 20:30:41 UTC (rev 326) @@ -0,0 +1,9 @@ +CodeLimit: 1024 +CompilationTimeLimit: 10000 +MemoryLimit: 21000000 +OutputLimit: 1024 +RealTimeLimit: 20000 +TimeLimit: 1000 +MaxThreads: 1 +Checker: scriptExample.txt +CheckPlugin: Plugin.dll \ No newline at end of file Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test1/in.txt =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test1/in.txt (rev 0) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test1/in.txt 2008-08-17 20:30:41 UTC (rev 326) @@ -0,0 +1 @@ +1 1 Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test1/out.txt =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test1/out.txt (rev 0) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test1/out.txt 2008-08-17 20:30:41 UTC (rev 326) @@ -0,0 +1 @@ +2 \ No newline at end of file Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test10/in.txt =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test10/in.txt (rev 0) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test10/in.txt 2008-08-17 20:30:41 UTC (rev 326) @@ -0,0 +1 @@ +1334 15 Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test10/out.txt =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test10/out.txt (rev 0) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test10/out.txt 2008-08-17 20:30:41 UTC (rev 326) @@ -0,0 +1 @@ +1349 \ No newline at end of file Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test11/in.txt =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test11/in.txt (rev 0) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test11/in.txt 2008-08-17 20:30:41 UTC (rev 326) @@ -0,0 +1 @@ +1334 15 Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test11/out.txt =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test11/out.txt (rev 0) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test11/out.txt 2008-08-17 20:30:41 UTC (rev 326) @@ -0,0 +1 @@ +1349 \ No newline at end of file Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test12/in.txt =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test12/in.txt (rev 0) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test12/in.txt 2008-08-17 20:30:41 UTC (rev 326) @@ -0,0 +1 @@ +1334 15 Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test12/out.txt =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test12/out.txt (rev 0) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test12/out.txt 2008-08-17 20:30:41 UTC (rev 326) @@ -0,0 +1 @@ +1349 \ No newline at end of file Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test13/in.txt =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test13/in.txt (rev 0) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test13/in.txt 2008-08-17 20:30:41 UTC (rev 326) @@ -0,0 +1 @@ +1334 15 Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test13/out.txt =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test13/out.txt (rev 0) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test13/out.txt 2008-08-17 20:30:41 UTC (rev 326) @@ -0,0 +1 @@ +1349 \ No newline at end of file Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test14/in.txt =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test14/in.txt (rev 0) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test14/in.txt 2008-08-17 20:30:41 UTC (rev 326) @@ -0,0 +1 @@ +1334 15 Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test14/out.txt =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test14/out.txt (rev 0) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test14/out.txt 2008-08-17 20:30:41 UTC (rev 326) @@ -0,0 +1 @@ +1349 \ No newline at end of file Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test15/in.txt =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test15/in.txt (rev 0) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test15/in.txt 2008-08-17 20:30:41 UTC (rev 326) @@ -0,0 +1 @@ +1334 15 Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test15/out.txt =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test15/out.txt (rev 0) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test15/out.txt 2008-08-17 20:30:41 UTC (rev 326) @@ -0,0 +1 @@ +1349 \ No newline at end of file Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test2/in.txt =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test2/in.txt (rev 0) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test2/in.txt 2008-08-17 20:30:41 UTC (rev 326) @@ -0,0 +1 @@ +1334 15 Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test2/out.txt =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test2/out.txt (rev 0) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test2/out.txt 2008-08-17 20:30:41 UTC (rev 326) @@ -0,0 +1 @@ +1349 \ No newline at end of file Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test3/in.txt =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test3/in.txt (rev 0) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test3/in.txt 2008-08-17 20:30:41 UTC (rev 326) @@ -0,0 +1 @@ +1334 15 Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test3/out.txt =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test3/out.txt (rev 0) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test3/out.txt 2008-08-17 20:30:41 UTC (rev 326) @@ -0,0 +1 @@ +1349 \ No newline at end of file Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test4/in.txt =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test4/in.txt (rev 0) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test4/in.txt 2008-08-17 20:30:41 UTC (rev 326) @@ -0,0 +1 @@ +1334 15 Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test4/out.txt =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test4/out.txt (rev 0) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test4/out.txt 2008-08-17 20:30:41 UTC (rev 326) @@ -0,0 +1 @@ +1349 \ No newline at end of file Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test5/in.txt =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test5/in.txt (rev 0) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test5/in.txt 2008-08-17 20:30:41 UTC (rev 326) @@ -0,0 +1 @@ +1334 15 Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test5/out.txt =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test5/out.txt (rev 0) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test5/out.txt 2008-08-17 20:30:41 UTC (rev 326) @@ -0,0 +1 @@ +1349 \ No newline at end of file Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test6/in.txt =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test6/in.txt (rev 0) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test6/in.txt 2008-08-17 20:30:41 UTC (rev 326) @@ -0,0 +1 @@ +1334 15 Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test6/out.txt =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test6/out.txt (rev 0) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test6/out.txt 2008-08-17 20:30:41 UTC (rev 326) @@ -0,0 +1 @@ +1349 \ No newline at end of file Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test7/in.txt =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test7/in.txt (rev 0) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test7/in.txt 2008-08-17 20:30:41 UTC (rev 326) @@ -0,0 +1 @@ +1334 15 Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test7/out.txt =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test7/out.txt (rev 0) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test7/out.txt 2008-08-17 20:30:41 UTC (rev 326) @@ -0,0 +1 @@ +1349 \ No newline at end of file Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test8/in.txt =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test8/in.txt (rev 0) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test8/in.txt 2008-08-17 20:30:41 UTC (rev 326) @@ -0,0 +1 @@ +1334 15 Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test8/out.txt =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test8/out.txt (rev 0) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test8/out.txt 2008-08-17 20:30:41 UTC (rev 326) @@ -0,0 +1 @@ +1349 \ No newline at end of file Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test9/in.txt =================================================================== --- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test9/in.txt (rev 0) +++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test9/in.txt 2008-08-17 20:30:41 UTC (rev 326) @@ -0,0 +1 @@ +1334 15 Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/D... [truncated message content] |
From: <Or...@us...> - 2008-08-17 20:23:06
|
Revision: 325 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=325&view=rev Author: Oracle_ Date: 2008-08-17 20:23:15 +0000 (Sun, 17 Aug 2008) Log Message: ----------- Added new version Added Paths: ----------- ACMServer/trunk/sharp tester/SourceTest 2.0/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <br...@us...> - 2008-08-15 22:02:34
|
Revision: 324 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=324&view=rev Author: brus07 Date: 2008-08-15 22:02:44 +0000 (Fri, 15 Aug 2008) Log Message: ----------- Fixed bug with spare testing state of Testers for submit, which in DataContainer (in testing). Bug this need refactoring. Modified Paths: -------------- ACMServer/trunk/ACMServer/Library/Data/DataMediator.cs ACMServer/trunk/ACMServer/Plugins/MediatorPlugins/SocketServerGatePlugin/SocketServerGate.cs Modified: ACMServer/trunk/ACMServer/Library/Data/DataMediator.cs =================================================================== --- ACMServer/trunk/ACMServer/Library/Data/DataMediator.cs 2008-08-15 12:50:52 UTC (rev 323) +++ ACMServer/trunk/ACMServer/Library/Data/DataMediator.cs 2008-08-15 22:02:44 UTC (rev 324) @@ -36,6 +36,12 @@ return d.ContainsKey(id); } + public bool Contains(Submit data) + { + DeleteOld(); + return Contains(data.id); + } + public bool Add(Submit data) { DeleteOld(); Modified: ACMServer/trunk/ACMServer/Plugins/MediatorPlugins/SocketServerGatePlugin/SocketServerGate.cs =================================================================== --- ACMServer/trunk/ACMServer/Plugins/MediatorPlugins/SocketServerGatePlugin/SocketServerGate.cs 2008-08-15 12:50:52 UTC (rev 323) +++ ACMServer/trunk/ACMServer/Plugins/MediatorPlugins/SocketServerGatePlugin/SocketServerGate.cs 2008-08-15 22:02:44 UTC (rev 324) @@ -25,7 +25,7 @@ { return instance; } - + protected override void DataSender(string message, int clientIndex) { Submit submit = Submit.CreateFromXml(message); @@ -35,6 +35,13 @@ base.DataSender(message, clientIndex); } } + private void Send2(Submit submit) + { + if (dataContainer.Contains(submit) == false) + { + base.Send(submit.ToString()); + } + } public new void Send(string message) { SubmitList submitList = SubmitList.CreateFromXml(message); @@ -49,7 +56,8 @@ for (int index = 0; index < submitList.Items.Length; index++) { - base.Send(submitList.Items[index].ToString()); + Send2(submitList.Items[index]); + //base.Send(submitList.Items[index].ToString()); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <br...@us...> - 2008-08-15 12:50:45
|
Revision: 323 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=323&view=rev Author: brus07 Date: 2008-08-15 12:50:52 +0000 (Fri, 15 Aug 2008) Log Message: ----------- Added new view for log message. This is the grid with color rows. Modified Paths: -------------- ACMServer/trunk/ACMServer/Tester/Form1.Designer.cs ACMServer/trunk/ACMServer/Tester/Form1.cs ACMServer/trunk/ACMServer/Tester/Library/SocketClientGate.cs Modified: ACMServer/trunk/ACMServer/Tester/Form1.Designer.cs =================================================================== --- ACMServer/trunk/ACMServer/Tester/Form1.Designer.cs 2008-08-14 23:18:22 UTC (rev 322) +++ ACMServer/trunk/ACMServer/Tester/Form1.Designer.cs 2008-08-15 12:50:52 UTC (rev 323) @@ -29,6 +29,7 @@ private void InitializeComponent() { this.components = new System.ComponentModel.Container(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); this.textBox1 = new System.Windows.Forms.TextBox(); this.button1 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button(); @@ -36,19 +37,25 @@ this.statusStrip1 = new System.Windows.Forms.StatusStrip(); this.toolStripStatusLabel1 = new System.Windows.Forms.ToolStripStatusLabel(); this.timer1 = new System.Windows.Forms.Timer(this.components); + this.tabControl1 = new System.Windows.Forms.TabControl(); + this.tabPage1 = new System.Windows.Forms.TabPage(); + this.tabPage2 = new System.Windows.Forms.TabPage(); + this.dataGridViewLog = new System.Windows.Forms.DataGridView(); this.statusStrip1.SuspendLayout(); + this.tabControl1.SuspendLayout(); + this.tabPage1.SuspendLayout(); + this.tabPage2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridViewLog)).BeginInit(); this.SuspendLayout(); // // textBox1 // - this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.textBox1.Location = new System.Drawing.Point(12, 70); + this.textBox1.Dock = System.Windows.Forms.DockStyle.Fill; + this.textBox1.Location = new System.Drawing.Point(3, 3); this.textBox1.Multiline = true; this.textBox1.Name = "textBox1"; this.textBox1.ScrollBars = System.Windows.Forms.ScrollBars.Both; - this.textBox1.Size = new System.Drawing.Size(268, 178); + this.textBox1.Size = new System.Drawing.Size(254, 146); this.textBox1.TabIndex = 0; // // button1 @@ -100,22 +107,83 @@ this.timer1.Enabled = true; this.timer1.Tick += new System.EventHandler(this.timer1_Tick); // + // tabControl1 + // + this.tabControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.tabControl1.Controls.Add(this.tabPage2); + this.tabControl1.Controls.Add(this.tabPage1); + this.tabControl1.Location = new System.Drawing.Point(12, 70); + this.tabControl1.Name = "tabControl1"; + this.tabControl1.SelectedIndex = 0; + this.tabControl1.Size = new System.Drawing.Size(268, 178); + this.tabControl1.TabIndex = 7; + // + // tabPage1 + // + this.tabPage1.Controls.Add(this.textBox1); + this.tabPage1.Location = new System.Drawing.Point(4, 22); + this.tabPage1.Name = "tabPage1"; + this.tabPage1.Padding = new System.Windows.Forms.Padding(3); + this.tabPage1.Size = new System.Drawing.Size(260, 152); + this.tabPage1.TabIndex = 0; + this.tabPage1.Text = "TextLog"; + this.tabPage1.UseVisualStyleBackColor = true; + // + // tabPage2 + // + this.tabPage2.Controls.Add(this.dataGridViewLog); + this.tabPage2.Location = new System.Drawing.Point(4, 22); + this.tabPage2.Name = "tabPage2"; + this.tabPage2.Padding = new System.Windows.Forms.Padding(3); + this.tabPage2.Size = new System.Drawing.Size(260, 152); + this.tabPage2.TabIndex = 1; + this.tabPage2.Text = "GridLog"; + this.tabPage2.UseVisualStyleBackColor = true; + // + // dataGridViewLog + // + this.dataGridViewLog.AllowUserToAddRows = false; + this.dataGridViewLog.AllowUserToDeleteRows = false; + this.dataGridViewLog.AutoSizeRowsMode = System.Windows.Forms.DataGridViewAutoSizeRowsMode.AllCells; + this.dataGridViewLog.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewLog.DefaultCellStyle = dataGridViewCellStyle1; + this.dataGridViewLog.Dock = System.Windows.Forms.DockStyle.Fill; + this.dataGridViewLog.Location = new System.Drawing.Point(3, 3); + this.dataGridViewLog.Name = "dataGridViewLog"; + this.dataGridViewLog.ReadOnly = true; + this.dataGridViewLog.Size = new System.Drawing.Size(254, 146); + this.dataGridViewLog.TabIndex = 0; + // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(292, 273); + this.Controls.Add(this.tabControl1); this.Controls.Add(this.statusStrip1); this.Controls.Add(this.textBox3); this.Controls.Add(this.button2); this.Controls.Add(this.button1); - this.Controls.Add(this.textBox1); this.Name = "Form1"; this.Text = "Tester"; this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing); this.Load += new System.EventHandler(this.Form1_Load); this.statusStrip1.ResumeLayout(false); this.statusStrip1.PerformLayout(); + this.tabControl1.ResumeLayout(false); + this.tabPage1.ResumeLayout(false); + this.tabPage1.PerformLayout(); + this.tabPage2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.dataGridViewLog)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); @@ -130,6 +198,10 @@ private System.Windows.Forms.StatusStrip statusStrip1; private System.Windows.Forms.Timer timer1; private System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabel1; + private System.Windows.Forms.TabControl tabControl1; + private System.Windows.Forms.TabPage tabPage1; + private System.Windows.Forms.TabPage tabPage2; + private System.Windows.Forms.DataGridView dataGridViewLog; } } Modified: ACMServer/trunk/ACMServer/Tester/Form1.cs =================================================================== --- ACMServer/trunk/ACMServer/Tester/Form1.cs 2008-08-14 23:18:22 UTC (rev 322) +++ ACMServer/trunk/ACMServer/Tester/Form1.cs 2008-08-15 12:50:52 UTC (rev 323) @@ -22,8 +22,20 @@ string ip = System.Net.Dns.GetHostAddresses(System.Net.Dns.GetHostName())[0].ToString(); textBox3.Text = ip; + + initGrid(); } + DataTable tableLog = new DataTable(); + private void initGrid() + { + tableLog.Columns.Add(new DataColumn("Time")); + tableLog.Columns.Add(new DataColumn("Text")); + tableLog.Columns.Add(new DataColumn("Type")); + + dataGridViewLog.DataSource = tableLog; + } + private void button1_Click(object sender, EventArgs e) { if (socket == null) @@ -70,6 +82,88 @@ } } + public void AddText(string type, string text) + { + AddText(type + ": " + text); + AddTextToGridLog(new LogMessage(text, type)); + } + + public class LogMessage + { + public LogMessage(string _text, string _type) + { + text = _text; + type = _type; + } + + string text; + public string Text + { + get + { + return text; + } + } + + string type; + public string Type + { + get + { + return type; + } + } + public Color Color + { + get + { + if (type == "SystemR") + return Color.LightBlue; + if (type == "SystemS") + return Color.LightSkyBlue; + if (type == "Receive") + return Color.LightGreen; + if (type == "Send") + return Color.LimeGreen; + return Color.White; + } + } + + public string Time + { + get + { + return DateTime.Now.ToLongTimeString() + "." + DateTime.Now.Millisecond.ToString(); + } + } + } + + delegate void AddTextToGridLogCallback(LogMessage text); + public void AddTextToGridLog(LogMessage text) + { + if (this.dataGridViewLog.InvokeRequired) + { + AddTextToGridLogCallback d = new AddTextToGridLogCallback(AddTextToGridLog); + this.Invoke(d, new object[] { text }); + } + else + { + DataRow row = tableLog.NewRow(); + row[0] = text.Time; + row[1] = text.Text; + row[2] = text.Type; + //table.Rows.Add(row); + tableLog.Rows.InsertAt(row, 0); + + int c = tableLog.Rows.Count - 1; + c = 0; + dataGridViewLog.Rows[c].DefaultCellStyle.BackColor = text.Color; + + dataGridViewLog.Update(); + + } + } + delegate void UpdateTextLogCallback(string message); private void UpdateTextLog(string message) { Modified: ACMServer/trunk/ACMServer/Tester/Library/SocketClientGate.cs =================================================================== --- ACMServer/trunk/ACMServer/Tester/Library/SocketClientGate.cs 2008-08-14 23:18:22 UTC (rev 322) +++ ACMServer/trunk/ACMServer/Tester/Library/SocketClientGate.cs 2008-08-15 12:50:52 UTC (rev 323) @@ -21,7 +21,7 @@ { if (SystemMessage(message) == true) return; - OnAddLogText("Receive: "+message); + OnAddLogText("Receive", message); //OnDataArrived(message); AddWork(message); } @@ -50,7 +50,7 @@ string[] mes = message.Split(chars); if (mes[0] == "test") { - OnAddLogText("_sys_Receive: " + message); + OnAddLogText("SystemR", message); string result = ""; if (IsBusy() == true) { @@ -64,7 +64,7 @@ { result += " " + mes[i]; } - OnAddLogText("\t_sys_Send: " + result); + OnAddLogText("SystemS", result); base.Send(result); return true; } @@ -90,7 +90,7 @@ { if (IsBusy() == true) { - OnAddLogText("--------- busy ---------"); + OnAddLogText("info", "--------- busy ---------"); return; } @@ -146,18 +146,18 @@ lock (this) { Result res = Result.CreateFromXml(result); - OnAddLogText("\tSend: " + res.Submit.id + " result - " + res.res); + OnAddLogText("Send", "ID " + res.Submit.id + " result - " + res.res); this.Send(result); } } - public delegate void AddLogTextDelegate(string s); + public delegate void AddLogTextDelegate(string type, string text); public event AddLogTextDelegate onAddLogText; - private void OnAddLogText(string message) + private void OnAddLogText(string type, string text) { if (onAddLogText != null) - onAddLogText(message); + onAddLogText(type,text); } } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <br...@us...> - 2008-08-14 23:18:12
|
Revision: 322 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=322&view=rev Author: brus07 Date: 2008-08-14 23:18:22 +0000 (Thu, 14 Aug 2008) Log Message: ----------- Move all functionality from Form to special class. Simple refactoring in FormClass. Modified Paths: -------------- ACMServer/trunk/ACMServer/Tester/Form1.Designer.cs ACMServer/trunk/ACMServer/Tester/Form1.cs ACMServer/trunk/ACMServer/Tester/Tester.csproj Added Paths: ----------- ACMServer/trunk/ACMServer/Tester/Library/ ACMServer/trunk/ACMServer/Tester/Library/SocketClientGate.cs Modified: ACMServer/trunk/ACMServer/Tester/Form1.Designer.cs =================================================================== --- ACMServer/trunk/ACMServer/Tester/Form1.Designer.cs 2008-08-12 23:06:49 UTC (rev 321) +++ ACMServer/trunk/ACMServer/Tester/Form1.Designer.cs 2008-08-14 23:18:22 UTC (rev 322) @@ -32,8 +32,6 @@ this.textBox1 = new System.Windows.Forms.TextBox(); this.button1 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button(); - this.textBox2 = new System.Windows.Forms.TextBox(); - this.button3 = new System.Windows.Forms.Button(); this.textBox3 = new System.Windows.Forms.TextBox(); this.statusStrip1 = new System.Windows.Forms.StatusStrip(); this.toolStripStatusLabel1 = new System.Windows.Forms.ToolStripStatusLabel(); @@ -46,13 +44,12 @@ this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.textBox1.Location = new System.Drawing.Point(12, 90); + this.textBox1.Location = new System.Drawing.Point(12, 70); this.textBox1.Multiline = true; this.textBox1.Name = "textBox1"; this.textBox1.ScrollBars = System.Windows.Forms.ScrollBars.Both; - this.textBox1.Size = new System.Drawing.Size(268, 158); + this.textBox1.Size = new System.Drawing.Size(268, 178); this.textBox1.TabIndex = 0; - this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged); // // button1 // @@ -74,25 +71,6 @@ this.button2.UseVisualStyleBackColor = true; this.button2.Click += new System.EventHandler(this.button2_Click); // - // textBox2 - // - this.textBox2.Enabled = false; - this.textBox2.Location = new System.Drawing.Point(149, 35); - this.textBox2.Name = "textBox2"; - this.textBox2.Size = new System.Drawing.Size(100, 20); - this.textBox2.TabIndex = 3; - // - // button3 - // - this.button3.Enabled = false; - this.button3.Location = new System.Drawing.Point(174, 61); - this.button3.Name = "button3"; - this.button3.Size = new System.Drawing.Size(75, 23); - this.button3.TabIndex = 4; - this.button3.Text = "Send"; - this.button3.UseVisualStyleBackColor = true; - this.button3.Click += new System.EventHandler(this.button3_Click); - // // textBox3 // this.textBox3.Location = new System.Drawing.Point(129, 9); @@ -129,8 +107,6 @@ this.ClientSize = new System.Drawing.Size(292, 273); this.Controls.Add(this.statusStrip1); this.Controls.Add(this.textBox3); - this.Controls.Add(this.button3); - this.Controls.Add(this.textBox2); this.Controls.Add(this.button2); this.Controls.Add(this.button1); this.Controls.Add(this.textBox1); @@ -150,8 +126,6 @@ private System.Windows.Forms.TextBox textBox1; private System.Windows.Forms.Button button1; private System.Windows.Forms.Button button2; - private System.Windows.Forms.TextBox textBox2; - private System.Windows.Forms.Button button3; private System.Windows.Forms.TextBox textBox3; private System.Windows.Forms.StatusStrip statusStrip1; private System.Windows.Forms.Timer timer1; Modified: ACMServer/trunk/ACMServer/Tester/Form1.cs =================================================================== --- ACMServer/trunk/ACMServer/Tester/Form1.cs 2008-08-12 23:06:49 UTC (rev 321) +++ ACMServer/trunk/ACMServer/Tester/Form1.cs 2008-08-14 23:18:22 UTC (rev 322) @@ -5,16 +5,16 @@ using System.Drawing; using System.Text; using System.Windows.Forms; -using AcmContester.Library.Connector; using System.IO; using AcmContester.Library.LibraryExtention; using System.Threading; +using AcmContester.Tester.Library; namespace Tester { public partial class Form1 : Form { - static SocketClient socket; + static SocketClientGate socket; public Form1() { @@ -28,8 +28,9 @@ { if (socket == null) { - socket = new SocketClient(textBox3.Text); - socket.onDataArrived += DataArrived; + socket = new SocketClientGate(textBox3.Text); + socket.onAddLogText += AddText; + //socket.onDataArrived += DataArrived; } socket.Connect(); } @@ -48,137 +49,36 @@ socket = null; } } - - private void button3_Click(object sender, EventArgs e) + + delegate void AddTextCallback(string text); + public void AddText(string text) { - if (socket.IsConnected() == false) - MessageBox.Show("Client: Bida"); - socket.Send(textBox2.Text); - } - private void DataArrived(string message) - { - UpdateTextLog("\r\n" + message); - if (SystemMessage(message) == true) - return; - AddWork(message); - } - - bool SystemMessage(string message) - { - char[] chars = new char[1]; - chars[0] = ' '; - string[] mes = message.Split(chars); - if (mes[0] == "test") + if (this.textBox1.InvokeRequired) { - string result = ""; - if (IsBusy() == true) - { - result = "busy"; - } - else - { - result = "free"; - } - string addStr = ""; - for (int i = 1; i < mes.Length; i++) - { - result += " " + mes[i]; - } - socket.Send(result); - return true; + AddTextCallback d = new AddTextCallback(AddText); + this.Invoke(d, new object[] { text }); } - return false; - } - - static string source; - static object working = 0; - Thread thread = new Thread(new ThreadStart(Go)); - bool IsBusy() - { - lock (working) + else { - if ((int)working == 1 || (thread.ThreadState == ThreadState.Running)) + string timeStr = DateTime.Now.ToLongTimeString() + "." + DateTime.Now.Millisecond.ToString(); + textBox1.Text += timeStr + " " + text + Environment.NewLine; + //if (autoScrollCheckBox.Checked) { - return true; ; + textBox1.Select(textBox1.Text.Length, 0); + textBox1.ScrollToCaret(); } } - return false; } - void AddWork(string message) - { - if (IsBusy() == true) - { - UpdateTextLog("\r\n--------- busy ---------"); - return; - } - source = message; - onDataArrived += UpdateTextLog; - thread = new Thread(new ThreadStart(Go)); - thread.Start(); - } - static void Go() - { - lock (working) - { - working = 1; - } - Testing(source); - lock (working) - { - working = 0; - } - } - static void Testing(string message) - { - string result; - try - { - result = Checker.Checker.GetResult(message); - } - catch (Exception ex) - { - Log log = Log.GetLog(); - log.Loging("Form1::DataArrived: Error: " + ex.Message, Log.Priority.ERR); - log.Loging("Form1::DataArrived: Error: " + ex.StackTrace, Log.Priority.ERR); - return; - } - - if (onDataArrived != null) - { - onDataArrived("\r\n" + result); - onDataArrived("\r\n--------- free ---------"); - } - //UpdateTextLog("\r\n" + result); - lock(socket) - socket.Send(result); - } - - - public delegate void DataArrivedDelegate(string s); - public static event DataArrivedDelegate onDataArrived; - delegate void UpdateTextLogCallback(string message); private void UpdateTextLog(string message) { - if (this.textBox1.InvokeRequired) - { - UpdateTextLogCallback d = new UpdateTextLogCallback(UpdateTextLog); - this.Invoke(d, new object[] { message }); - } - else - { - textBox1.Text += message; - textBox1.Select(textBox1.Text.Length, 0); - textBox1.ScrollToCaret(); - } - + AddText(message); } private void Form1_FormClosing(object sender, FormClosingEventArgs e) { - thread.Abort(); Disconnect(); } @@ -207,12 +107,5 @@ UpdateTextLog("\r\n\tLogFile can't open. Working without logging to LogFile."); } } - - private void textBox1_TextChanged(object sender, EventArgs e) - { - textBox1.Select(textBox1.Text.Length, 0); - textBox1.ScrollToCaret(); - } - } } \ No newline at end of file Property changes on: ACMServer/trunk/ACMServer/Tester/Library ___________________________________________________________________ Added: tsvn:logminsize + 5 Added: ACMServer/trunk/ACMServer/Tester/Library/SocketClientGate.cs =================================================================== --- ACMServer/trunk/ACMServer/Tester/Library/SocketClientGate.cs (rev 0) +++ ACMServer/trunk/ACMServer/Tester/Library/SocketClientGate.cs 2008-08-14 23:18:22 UTC (rev 322) @@ -0,0 +1,163 @@ +using System; +using AcmContester.Library.Connector; +using System.Threading; +using AcmContester.Library.LibraryExtention; +using AcmContester.Library.LibraryExtention.Data; + +namespace AcmContester.Tester.Library +{ + class SocketClientGate: SocketClient + { + public delegate void DataArrivedDelegate(string s); + public event DataArrivedDelegate onDataArrived; + + public SocketClientGate(string IP) + : base(IP) + { + base.onDataArrived +=new SocketClient.DataArrivedDelegate(SocketClientGate_onDataArrived); + } + + void SocketClientGate_onDataArrived(string message) + { + if (SystemMessage(message) == true) + return; + OnAddLogText("Receive: "+message); + //OnDataArrived(message); + AddWork(message); + } + + public new void Disconnect() + { + if (thread != null) + thread.Abort(); + base.Disconnect(); + } + + + private void OnDataArrived(string message) + { + if (onDataArrived != null) + { + onDataArrived(message); + } + } + + + private bool SystemMessage(string message) + { + char[] chars = new char[1]; + chars[0] = ' '; + string[] mes = message.Split(chars); + if (mes[0] == "test") + { + OnAddLogText("_sys_Receive: " + message); + string result = ""; + if (IsBusy() == true) + { + result = "busy"; + } + else + { + result = "free"; + } + for (int i = 1; i < mes.Length; i++) + { + result += " " + mes[i]; + } + OnAddLogText("\t_sys_Send: " + result); + base.Send(result); + return true; + } + return false; + } + + string source = ""; + object working = 0; + Thread thread = new Thread(new ParameterizedThreadStart(Go)); + private bool IsBusy() + { + lock (working) + { + if ((int)working == 1 || (thread.ThreadState == ThreadState.Running)) + { + return true; + } + } + return false; + } + + private void AddWork(string message) + { + if (IsBusy() == true) + { + OnAddLogText("--------- busy ---------"); + return; + } + + //TODO: tut potribno stavyty lock + // a znimaty vze u samomu Thread'i + // (dyv. na inshe TODO:) + lock(source) + source = message; + + //TODO: potribno jakos obnulyty status thread, + // tak shob ne potribno bulo stvorjuvaty novyj + thread = new Thread(new ParameterizedThreadStart(Go)); + thread.Start(this); + } + + static void Go(object data) + { + if (data is SocketClient == false) + throw new ArgumentException(); + + SocketClientGate gate = (SocketClientGate)data; + + lock (gate.working) + gate.working = 1; + + string copySource; + //TODO: tut potribno znimaty postavlenyj lock + // toj lock postavlenyj u potoci sho vyklykav cej + lock (gate.source) + copySource = gate.source; + gate.Run(copySource); + + lock (gate.working) + gate.working = 0; + } + + void Run(string message) + { + string result; + try + { + result = Checker.Checker.GetResult(message); + } + catch (Exception ex) + { + Log log = Log.GetLog(); + log.Loging("Form1::DataArrived: Error: " + ex.Message, Log.Priority.ERR); + log.Loging("Form1::DataArrived: Error: " + ex.StackTrace, Log.Priority.ERR); + return; + } + + //TODO: ne znaju chy tut potriben lcok + lock (this) + { + Result res = Result.CreateFromXml(result); + OnAddLogText("\tSend: " + res.Submit.id + " result - " + res.res); + this.Send(result); + } + } + + + public delegate void AddLogTextDelegate(string s); + public event AddLogTextDelegate onAddLogText; + private void OnAddLogText(string message) + { + if (onAddLogText != null) + onAddLogText(message); + } + } +} Modified: ACMServer/trunk/ACMServer/Tester/Tester.csproj =================================================================== --- ACMServer/trunk/ACMServer/Tester/Tester.csproj 2008-08-12 23:06:49 UTC (rev 321) +++ ACMServer/trunk/ACMServer/Tester/Tester.csproj 2008-08-14 23:18:22 UTC (rev 322) @@ -66,6 +66,7 @@ <DependentUpon>Settings.settings</DependentUpon> <DesignTimeSharedInput>True</DesignTimeSharedInput> </Compile> + <Compile Include="Library\SocketClientGate.cs" /> </ItemGroup> <ItemGroup> <ProjectReference Include="..\Checker\Checker.csproj"> @@ -76,6 +77,10 @@ <Project>{211DD6A5-2D73-439E-8722-ED2C89ED1DDB}</Project> <Name>Connector</Name> </ProjectReference> + <ProjectReference Include="..\Library\Data\Data.csproj"> + <Project>{30C0EFA3-36A8-4C6F-8FEC-28F771D4933F}</Project> + <Name>Data</Name> + </ProjectReference> <ProjectReference Include="..\Library\LibraryExtention\LibraryExtention.csproj"> <Project>{A8135069-F8BA-4E5D-835F-3FF3F350AA5D}</Project> <Name>LibraryExtention</Name> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <br...@us...> - 2008-08-12 23:06:40
|
Revision: 321 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=321&view=rev Author: brus07 Date: 2008-08-12 23:06:49 +0000 (Tue, 12 Aug 2008) Log Message: ----------- Made a copy Added Paths: ----------- ACMServer/branches/3.0-alpha4/sharp tester/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <br...@us...> - 2008-08-12 22:59:06
|
Revision: 320 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=320&view=rev Author: brus07 Date: 2008-08-12 22:59:15 +0000 (Tue, 12 Aug 2008) Log Message: ----------- Create folder for new branch. Added Paths: ----------- ACMServer/branches/3.0-alpha4/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <br...@us...> - 2008-08-12 20:05:20
|
Revision: 319 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=319&view=rev Author: brus07 Date: 2008-08-12 20:05:30 +0000 (Tue, 12 Aug 2008) Log Message: ----------- Fixed grammatical mistake Modified Paths: -------------- ACMServer/trunk/ACMServer/Library/Connector/SocketServer.cs Modified: ACMServer/trunk/ACMServer/Library/Connector/SocketServer.cs =================================================================== --- ACMServer/trunk/ACMServer/Library/Connector/SocketServer.cs 2008-08-11 15:39:42 UTC (rev 318) +++ ACMServer/trunk/ACMServer/Library/Connector/SocketServer.cs 2008-08-12 20:05:30 UTC (rev 319) @@ -136,7 +136,7 @@ /// \xDF\xEA\xF9\xEE \xF1\xEB\xF3\xE6\xE1\xEE\xE2\xE5, \xF2\xEE\xE4\xB3 \xE2\xEE\xED\xEE \xE7\xE0\xED\xEE\xF1\xE8\xF2\xFC\xF1\xFF \xE4\xEE \xF1\xEF\xE8\xF1\xEA\xF3 q /// </summary> /// <param name="message">\xCF\xEE\xE2\xB3\xE4\xEE\xEC\xEB\xE5\xED\xED\xFF</param> - /// <returns>\xDF\xEA\xF9\xEE \xF6\xE5 \xF1\xEB\xF3\xE6\xE1\xEE\xE2\xE5 \xEF\xEE\xE2\xB3\xE4\xEE\xEC\xEB\xE5\xED\xED\xFF, \xF2\xEE\xE4\xE2\xB3 \xEF\xEE\xE2\xE5\xF0\xF2\xE0\xBA\xF2\xFC\xF1\xFF true \xEF\xEE \xB3\xED\xE0\xEA\xF8\xEE\xEC\xF3 false</returns> + /// <returns>\xDF\xEA\xF9\xEE \xF6\xE5 \xF1\xEB\xF3\xE6\xE1\xEE\xE2\xE5 \xEF\xEE\xE2\xB3\xE4\xEE\xEC\xEB\xE5\xED\xED\xFF, \xF2\xEE\xE4\xB3 \xEF\xEE\xE2\xE5\xF0\xF2\xE0\xBA\xF2\xFC\xF1\xFF true \xEF\xEE \xB3\xED\xE0\xEA\xF8\xEE\xEC\xF3 false</returns> private bool SystemMessage(string message) { char[] chars = new char[1]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <Or...@us...> - 2008-08-11 16:22:46
|
Revision: 318 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=318&view=rev Author: Oracle_ Date: 2008-08-11 15:39:42 +0000 (Mon, 11 Aug 2008) Log Message: ----------- Fixed bug with expired password. Modified Paths: -------------- ACMServer/trunk/sharp tester/SourceTest/SourceTest.cpp Modified: ACMServer/trunk/sharp tester/SourceTest/SourceTest.cpp =================================================================== --- ACMServer/trunk/sharp tester/SourceTest/SourceTest.cpp 2008-08-11 12:19:44 UTC (rev 317) +++ ACMServer/trunk/sharp tester/SourceTest/SourceTest.cpp 2008-08-11 15:39:42 UTC (rev 318) @@ -764,7 +764,7 @@ USER_INFO_1 ui; NET_API_STATUS st; ui.usri1_comment=NULL; - ui.usri1_flags=UF_SCRIPT|UF_PASSWD_CANT_CHANGE; + ui.usri1_flags=UF_SCRIPT|UF_PASSWD_CANT_CHANGE|UF_DONT_EXPIRE_PASSWD; ui.usri1_home_dir=NULL; ui.usri1_name=(LPWSTR)USER_NAME; ui.usri1_password=(LPWSTR)USER_PASSW; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <Or...@us...> - 2008-08-11 12:19:36
|
Revision: 317 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=317&view=rev Author: Oracle_ Date: 2008-08-11 12:19:44 +0000 (Mon, 11 Aug 2008) Log Message: ----------- Fixed bug with compiling. Modified Paths: -------------- ACMServer/trunk/sharp tester/SourceTest/SourceTest.h Modified: ACMServer/trunk/sharp tester/SourceTest/SourceTest.h =================================================================== --- ACMServer/trunk/sharp tester/SourceTest/SourceTest.h 2008-08-10 22:14:09 UTC (rev 316) +++ ACMServer/trunk/sharp tester/SourceTest/SourceTest.h 2008-08-11 12:19:44 UTC (rev 317) @@ -5,6 +5,7 @@ using namespace System; using namespace System::Collections; using namespace System::Security::AccessControl; +using namespace System::IO; namespace SourceTest { @@ -493,7 +494,7 @@ { try{ lock(); - FProblemPath=value; + FProblemPath=Path::GetFullPath(value); }finally { unlock(); } @@ -631,7 +632,7 @@ try { lock(); - FCompPath=value; + FCompPath=Path::GetFullPath(value); }finally { unlock(); @@ -658,7 +659,7 @@ try { lock(); - FTempPath=value; + FTempPath=Path::GetFullPath(value); System::IO::Directory::CreateDirectory(FTempPath); }finally { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <br...@us...> - 2008-08-10 22:14:00
|
Revision: 316 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=316&view=rev Author: brus07 Date: 2008-08-10 22:14:09 +0000 (Sun, 10 Aug 2008) Log Message: ----------- Revert last commit, because made bad copy. Removed Paths: ------------- ACMServer/trunk/3.0-alpha4/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <br...@us...> - 2008-08-10 20:05:12
|
Revision: 315 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=315&view=rev Author: brus07 Date: 2008-08-10 20:05:19 +0000 (Sun, 10 Aug 2008) Log Message: ----------- Made a copy Added Paths: ----------- ACMServer/tags/3.0-alpha4/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <br...@us...> - 2008-08-10 18:50:05
|
Revision: 314 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=314&view=rev Author: brus07 Date: 2008-08-10 18:50:13 +0000 (Sun, 10 Aug 2008) Log Message: ----------- Made a copy Added Paths: ----------- ACMServer/trunk/3.0-alpha4/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <br...@us...> - 2008-08-10 18:04:59
|
Revision: 313 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=313&view=rev Author: brus07 Date: 2008-08-10 18:05:07 +0000 (Sun, 10 Aug 2008) Log Message: ----------- Revert last commit, because made bad copy. Removed Paths: ------------- ACMServer/tags/3.0-alpha4/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <br...@us...> - 2008-08-10 11:45:32
|
Revision: 312 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=312&view=rev Author: brus07 Date: 2008-08-10 11:45:41 +0000 (Sun, 10 Aug 2008) Log Message: ----------- Made a copy Added Paths: ----------- ACMServer/tags/3.0-alpha4/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <br...@us...> - 2008-08-09 15:18:44
|
Revision: 311 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=311&view=rev Author: brus07 Date: 2008-08-09 15:18:52 +0000 (Sat, 09 Aug 2008) Log Message: ----------- Add folders "bin" and "obj" to ignore list. Property Changed: ---------------- ACMServer/trunk/sharp tester/Checker/Checker/ Property changes on: ACMServer/trunk/sharp tester/Checker/Checker ___________________________________________________________________ Added: svn:ignore + bin obj This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <br...@us...> - 2008-08-09 14:47:15
|
Revision: 310 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=310&view=rev Author: brus07 Date: 2008-08-09 14:47:24 +0000 (Sat, 09 Aug 2008) Log Message: ----------- Delete "bin" and "obj" folders from SVN database. Move important *.dll to "Resource" folder and add to project. Modified Paths: -------------- ACMServer/trunk/sharp tester/Checker/Checker/Checker.csproj Added Paths: ----------- ACMServer/trunk/sharp tester/Checker/Checker/Resource/ ACMServer/trunk/sharp tester/Checker/Checker/Resource/MutanticFramework.dll ACMServer/trunk/sharp tester/Checker/Checker/Resource/ScriptDotNet.dll Removed Paths: ------------- ACMServer/trunk/sharp tester/Checker/Checker/bin/ ACMServer/trunk/sharp tester/Checker/Checker/obj/ Property Changed: ---------------- ACMServer/trunk/sharp tester/Checker/ Property changes on: ACMServer/trunk/sharp tester/Checker ___________________________________________________________________ Added: svn:ignore + *.NoLoad *.suo Modified: ACMServer/trunk/sharp tester/Checker/Checker/Checker.csproj =================================================================== --- ACMServer/trunk/sharp tester/Checker/Checker/Checker.csproj 2008-08-09 13:25:09 UTC (rev 309) +++ ACMServer/trunk/sharp tester/Checker/Checker/Checker.csproj 2008-08-09 14:47:24 UTC (rev 310) @@ -28,7 +28,13 @@ <WarningLevel>4</WarningLevel> </PropertyGroup> <ItemGroup> - <Reference Include="ScriptDotNet, Version=1.0.0.1, Culture=neutral, processorArchitecture=MSIL" /> + <Reference Include="MutanticFramework, Version=1.0.0.1, Culture=neutral, processorArchitecture=MSIL"> + <SpecificVersion>False</SpecificVersion> + <HintPath>Resource\MutanticFramework.dll</HintPath> + </Reference> + <Reference Include="ScriptDotNet, Version=1.0.0.1, Culture=neutral, processorArchitecture=MSIL"> + <HintPath>Resource\ScriptDotNet.dll</HintPath> + </Reference> <Reference Include="System" /> <Reference Include="System.Data" /> <Reference Include="System.Xml" /> Property changes on: ACMServer/trunk/sharp tester/Checker/Checker/Resource ___________________________________________________________________ Added: tsvn:logminsize + 5 Property changes on: ACMServer/trunk/sharp tester/Checker/Checker/Resource/MutanticFramework.dll ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: svn:mergeinfo + Property changes on: ACMServer/trunk/sharp tester/Checker/Checker/Resource/ScriptDotNet.dll ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: svn:mergeinfo + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <br...@us...> - 2008-08-09 13:25:00
|
Revision: 309 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=309&view=rev Author: brus07 Date: 2008-08-09 13:25:09 +0000 (Sat, 09 Aug 2008) Log Message: ----------- Added helper methods, for creating object from XML. Changed code for used this methods, where need. Modified Paths: -------------- ACMServer/trunk/ACMServer/Library/Data/Result.cs ACMServer/trunk/ACMServer/Library/Data/Submit.cs ACMServer/trunk/ACMServer/Library/Data/SubmitList.cs ACMServer/trunk/ACMServer/Library/LibraryExtention/LibraryExtention.csproj Added Paths: ----------- ACMServer/trunk/ACMServer/Library/LibraryExtention/XML/XmlHelper.cs Removed Paths: ------------- ACMServer/trunk/ACMServer/Library/LibraryExtention/XML/Xml.cs Modified: ACMServer/trunk/ACMServer/Library/Data/Result.cs =================================================================== --- ACMServer/trunk/ACMServer/Library/Data/Result.cs 2008-08-06 21:29:48 UTC (rev 308) +++ ACMServer/trunk/ACMServer/Library/Data/Result.cs 2008-08-09 13:25:09 UTC (rev 309) @@ -49,15 +49,7 @@ public static Result CreateFromXml(string message) { - message = Xml.GetOuterXmlOfSingleNodeFromXpath(message, "result"); - if (message == null || message == "") - return null; - string schema = Reader.ReadString("data.xsd"); - if (Xml.ValidateXmlWithSchema(message, schema) == false) - return null; - - Result result = XmlSerializer<Result>.Load(message); - return result; + return XmlHelper.GetObject<Result>(message, "result", "data.xsd"); } public override string ToString() Modified: ACMServer/trunk/ACMServer/Library/Data/Submit.cs =================================================================== --- ACMServer/trunk/ACMServer/Library/Data/Submit.cs 2008-08-06 21:29:48 UTC (rev 308) +++ ACMServer/trunk/ACMServer/Library/Data/Submit.cs 2008-08-09 13:25:09 UTC (rev 309) @@ -16,8 +16,6 @@ [XmlElement("language", typeof(int))] public int language; - string temp; - public Submit() { } @@ -31,15 +29,7 @@ public static Submit CreateFromXml(string message) { - message = Xml.GetOuterXmlOfSingleNodeFromXpath(message, "submit"); - if (message == null || message == "") - return null; - string schema = Reader.ReadString("data.xsd"); - if (Xml.ValidateXmlWithSchema(message, schema) == false) - return null; - - Submit newList = XmlSerializer<Submit>.Load(message); - return newList; + return XmlHelper.GetObject<Submit>(message, "submit", "data.xsd"); } //HACK: \xE4\xEB\xFF \xF2\xE5\xF1\xF2\xF3 \xF5\xE0\xE9 \xE1\xF3\xE4\xE5 \xF2\xE0\xEA, \xE0\xEB\xE5 \xEC\xE0\xBA \xE1\xF3\xF2\xE8 \xF7\xE5\xF0\xE5\xE7 XML Modified: ACMServer/trunk/ACMServer/Library/Data/SubmitList.cs =================================================================== --- ACMServer/trunk/ACMServer/Library/Data/SubmitList.cs 2008-08-06 21:29:48 UTC (rev 308) +++ ACMServer/trunk/ACMServer/Library/Data/SubmitList.cs 2008-08-09 13:25:09 UTC (rev 309) @@ -17,15 +17,7 @@ public static SubmitList CreateFromXml(string message) { - message = Xml.GetOuterXmlOfSingleNodeFromXpath(message, "submitList"); - if (message == null || message == "") - return null; - string schema = Reader.ReadString("data.xsd"); - if (Xml.ValidateXmlWithSchema(message, schema) == false) - return null; - - SubmitList newList = XmlSerializer<SubmitList>.Load(message); - return newList; + return XmlHelper.GetObject<SubmitList>(message, "submitList", "data.xsd"); } public override string ToString() { Modified: ACMServer/trunk/ACMServer/Library/LibraryExtention/LibraryExtention.csproj =================================================================== --- ACMServer/trunk/ACMServer/Library/LibraryExtention/LibraryExtention.csproj 2008-08-06 21:29:48 UTC (rev 308) +++ ACMServer/trunk/ACMServer/Library/LibraryExtention/LibraryExtention.csproj 2008-08-09 13:25:09 UTC (rev 309) @@ -36,7 +36,7 @@ <Compile Include="Log.cs" /> <Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Reader.cs" /> - <Compile Include="XML\Xml.cs" /> + <Compile Include="XML\XmlHelper.cs" /> <Compile Include="XML\XmlSerializer.cs" /> <Compile Include="XML\XmlValidator.cs" /> </ItemGroup> Deleted: ACMServer/trunk/ACMServer/Library/LibraryExtention/XML/Xml.cs =================================================================== --- ACMServer/trunk/ACMServer/Library/LibraryExtention/XML/Xml.cs 2008-08-06 21:29:48 UTC (rev 308) +++ ACMServer/trunk/ACMServer/Library/LibraryExtention/XML/Xml.cs 2008-08-09 13:25:09 UTC (rev 309) @@ -1,62 +0,0 @@ -using System; -using System.Collections; -using System.Xml; - -namespace AcmContester.AcmLibraryExtention.XML -{ - public class Xml - { - XmlDocument document = new XmlDocument(); - - string name; - string xmlDeclaration = ""; - - public string Name - { - get - { - return name; - } - } - - public Xml(string str) - { - document.LoadXml(str); - if (document.ChildNodes[0].NodeType == XmlNodeType.XmlDeclaration) - { - xmlDeclaration = document.ChildNodes[0].OuterXml; - document.RemoveChild(document.FirstChild); - } - name = document.FirstChild.Name; - } - public override string ToString() - { - return document.OuterXml; - } - - public static string GetOuterXmlOfSingleNodeFromXpath(string fullXml, string xmlPath) - { - //XmlNodeList nodes = doc.SelectNodes("descendant::root/submit"); - XmlDocument document = new XmlDocument(); - string result = null; - try - { - document.LoadXml(fullXml); - XmlNode node = document.SelectSingleNode("descendant::" + xmlPath); - if (node != null) - result = node.OuterXml; - } - catch (XmlException ex) - { - throw ex; - } - return result; - } - - public static bool ValidateXmlWithSchema(string xml, string schema) - { - XmlValidator validator = new XmlValidator(xml); - return validator.Validate(schema); - } - } -} Copied: ACMServer/trunk/ACMServer/Library/LibraryExtention/XML/XmlHelper.cs (from rev 308, ACMServer/trunk/ACMServer/Library/LibraryExtention/XML/Xml.cs) =================================================================== --- ACMServer/trunk/ACMServer/Library/LibraryExtention/XML/XmlHelper.cs (rev 0) +++ ACMServer/trunk/ACMServer/Library/LibraryExtention/XML/XmlHelper.cs 2008-08-09 13:25:09 UTC (rev 309) @@ -0,0 +1,100 @@ +using System; +using System.Collections; +using System.Xml; +using AcmContester.Library.LibraryExtention; + +namespace AcmContester.AcmLibraryExtention.XML +{ + public class XmlHelper + { + + public static string GetOuterXmlOfSingleNodeFromXpath(string fullXml, string xmlPath) + { + //XmlNodeList nodes = doc.SelectNodes("descendant::root/submit"); + XmlDocument document = new XmlDocument(); + string result = null; + try + { + document.LoadXml(fullXml); + XmlNode node = document.SelectSingleNode("descendant::" + xmlPath); + if (node != null) + result = node.OuterXml; + } + catch (XmlException ex) + { + throw ex; + } + return result; + } + + public static bool ValidateXmlWithSchema(string xml, string schema) + { + XmlValidator validator = new XmlValidator(xml); + return validator.Validate(schema); + } + + /// <summary> + /// + /// </summary> + /// <typeparam name="T"></typeparam> + /// <param name="fullXml"></param> + /// <param name="xmlPath"></param> + /// <param name="pathToSchemaFile"></param> + /// <returns></returns> + /// <exception cref="ArgumentNullException"></exception> + /// <exception cref="ArgumentException"></exception> + public static T GetObject<T>(string fullXml, string xmlPath, string pathToSchemaFile) where T: class + { + if (fullXml == null) + throw new ArgumentNullException("fullXml", "Can't be null"); + if (fullXml == null) + throw new ArgumentException("fullXml", "Can't be empty"); + if (xmlPath == null) + throw new ArgumentNullException("xmlPath", "Can't be null"); + if (xmlPath == null) + throw new ArgumentException("xmlPath", "Can't be empty"); + if (pathToSchemaFile == null) + throw new ArgumentNullException("pathToSchemaFile", "Can't be null. You can use other method without this parameter"); + if (pathToSchemaFile == null) + throw new ArgumentException("pathToSchemaFile", "Can't be null. You can use other method without this parameter"); + + fullXml = XmlHelper.GetOuterXmlOfSingleNodeFromXpath(fullXml, xmlPath); + if (fullXml == null || fullXml == "") + return null; + string schema = Reader.ReadString(pathToSchemaFile); + if (XmlHelper.ValidateXmlWithSchema(fullXml, schema) == false) + return null; + + T result = XmlSerializer<T>.Load(fullXml); + return result; + } + + /// <summary> + /// + /// </summary> + /// <typeparam name="T"></typeparam> + /// <param name="fullXml"></param> + /// <param name="xmlPath"></param> + /// <returns></returns> + /// <exception cref="ArgumentNullException"></exception> + /// <exception cref="ArgumentException"></exception> + public static T GetObject<T>(string fullXml, string xmlPath) where T : class + { + if (fullXml == null) + throw new ArgumentNullException("fullXml", "Can't be null"); + if (fullXml == null) + throw new ArgumentException("fullXml", "Can't be empty"); + if (xmlPath == null) + throw new ArgumentNullException("xmlPath", "Can't be null"); + if (xmlPath == null) + throw new ArgumentException("xmlPath", "Can't be empty"); + + fullXml = XmlHelper.GetOuterXmlOfSingleNodeFromXpath(fullXml, xmlPath); + if (fullXml == null || fullXml == "") + return null; + + T result = XmlSerializer<T>.Load(fullXml); + return result; + } + } +} Property changes on: ACMServer/trunk/ACMServer/Library/LibraryExtention/XML/XmlHelper.cs ___________________________________________________________________ Added: svn:mergeinfo + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <di...@us...> - 2008-08-06 21:29:41
|
Revision: 308 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=308&view=rev Author: dixond Date: 2008-08-06 21:29:48 +0000 (Wed, 06 Aug 2008) Log Message: ----------- Project Checker updated as Brus wish) Modified Paths: -------------- ACMServer/trunk/sharp tester/Checker/Checker/bin/Debug/Checker.dll ACMServer/trunk/sharp tester/Checker/Checker/bin/Debug/Checker.pdb ACMServer/trunk/sharp tester/Checker/Checker/obj/Debug/Checker.dll ACMServer/trunk/sharp tester/Checker/Checker/obj/Debug/Checker.pdb ACMServer/trunk/sharp tester/Checker/Checker/obj/Debug/ResolveAssemblyReference.cache ACMServer/trunk/sharp tester/Checker/Checker.sln Added Paths: ----------- ACMServer/trunk/sharp tester/Checker/Checker/ ACMServer/trunk/sharp tester/Checker/Checker/Checker.cs ACMServer/trunk/sharp tester/Checker/Checker/Checker.csproj ACMServer/trunk/sharp tester/Checker/Checker/Properties/ ACMServer/trunk/sharp tester/Checker/Checker/ReadMe!.txt ACMServer/trunk/sharp tester/Checker/Checker/bin/ ACMServer/trunk/sharp tester/Checker/Checker/obj/ ACMServer/trunk/sharp tester/Checker/Checker/scriptExample.txt Removed Paths: ------------- ACMServer/trunk/sharp tester/Checker/Checker.cs ACMServer/trunk/sharp tester/Checker/Checker.csproj ACMServer/trunk/sharp tester/Checker/Checker.suo ACMServer/trunk/sharp tester/Checker/Properties/ ACMServer/trunk/sharp tester/Checker/ReadMe!.txt ACMServer/trunk/sharp tester/Checker/bin/ ACMServer/trunk/sharp tester/Checker/obj/ ACMServer/trunk/sharp tester/Checker/scriptExample.txt Copied: ACMServer/trunk/sharp tester/Checker/Checker/Checker.cs (from rev 307, ACMServer/trunk/sharp tester/Checker/Checker.cs) =================================================================== --- ACMServer/trunk/sharp tester/Checker/Checker/Checker.cs (rev 0) +++ ACMServer/trunk/sharp tester/Checker/Checker/Checker.cs 2008-08-06 21:29:48 UTC (rev 308) @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.IO; + +using ScriptDotNet; + +namespace Tester +{ + public enum CheckResult + { + AC, + WA, + PE, + OE + } + public class Checker + { + public string input; + public string output; + public string correctOutput; + public string scriptPath; + + public Checker() { } + + public Checker(string scriptPath,string input, string output, string correctOutput) + { + this.input = input; + this.output = output; + this.correctOutput = output; + this.scriptPath = scriptPath; + } + + public Checker(string scriptPath, string input, string output) + : this(scriptPath,input,output,"") { } + + public CheckResult Check() + { + Script scr = Script.Compile(File.ReadAllText(scriptPath)); + scr.AddBuildInObject(input); + scr.AddBuildInObject(output); + scr.AddBuildInObject(correctOutput); + scr.Execute(); + string result = scr.Lookup("result").ToString(); + return (CheckResult)Enum.Parse(typeof(CheckResult), result); + } + } +} Copied: ACMServer/trunk/sharp tester/Checker/Checker/Checker.csproj (from rev 307, ACMServer/trunk/sharp tester/Checker/Checker.csproj) =================================================================== --- ACMServer/trunk/sharp tester/Checker/Checker/Checker.csproj (rev 0) +++ ACMServer/trunk/sharp tester/Checker/Checker/Checker.csproj 2008-08-06 21:29:48 UTC (rev 308) @@ -0,0 +1,48 @@ +<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> + <ProductVersion>8.0.50727</ProductVersion> + <SchemaVersion>2.0</SchemaVersion> + <ProjectGuid>{BAFD4E93-B37A-416F-807D-E2515ECB6498}</ProjectGuid> + <OutputType>Library</OutputType> + <AppDesignerFolder>Properties</AppDesignerFolder> + <RootNamespace>Checker</RootNamespace> + <AssemblyName>Checker</AssemblyName> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + <DebugSymbols>true</DebugSymbols> + <DebugType>full</DebugType> + <Optimize>false</Optimize> + <OutputPath>bin\Debug\</OutputPath> + <DefineConstants>DEBUG;TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> + <DebugType>pdbonly</DebugType> + <Optimize>true</Optimize> + <OutputPath>bin\Release\</OutputPath> + <DefineConstants>TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <ItemGroup> + <Reference Include="ScriptDotNet, Version=1.0.0.1, Culture=neutral, processorArchitecture=MSIL" /> + <Reference Include="System" /> + <Reference Include="System.Data" /> + <Reference Include="System.Xml" /> + </ItemGroup> + <ItemGroup> + <Compile Include="Checker.cs" /> + <Compile Include="Properties\AssemblyInfo.cs" /> + </ItemGroup> + <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> + <!-- To modify your build process, add your task inside one of the targets below and uncomment it. + Other similar extension points exist, see Microsoft.Common.targets. + <Target Name="BeforeBuild"> + </Target> + <Target Name="AfterBuild"> + </Target> + --> +</Project> \ No newline at end of file Copied: ACMServer/trunk/sharp tester/Checker/Checker/ReadMe!.txt (from rev 307, ACMServer/trunk/sharp tester/Checker/ReadMe!.txt) =================================================================== --- ACMServer/trunk/sharp tester/Checker/Checker/ReadMe!.txt (rev 0) +++ ACMServer/trunk/sharp tester/Checker/Checker/ReadMe!.txt 2008-08-06 21:29:48 UTC (rev 308) @@ -0,0 +1,15 @@ +>>>>>>>>>>>>>>\xD4\xEE\xF0\xEC\xE0\xF2 \xF1\xEA\xF0\xB3\xEF\xF2\xEE\xE2\xEE\xE3\xEE \xF4\xE0\xE9\xEB\xF3<<<<<<<<<<<<<< +\xD1\xEA\xF0\xB3\xEF\xF2\xE8 \xEF\xE8\xF8\xF3\xF2\xFC\xF1\xFF \xED\xE0 \xEC\xEE\xE2\xB3 Script.NET (\xF1\xE8\xED\xF2\xE0\xEA\xF1\xE8\xF1 \xEE\xEF\xE8\xF8\xF3 \xEF\xB3\xE7\xED\xB3\xF8\xE5) + +\xD1\xEA\xF0\xB3\xEF\xF2\xF3 \xE4\xEE\xF1\xF2\xF3\xEF\xED\xB3 \xED\xE0\xF1\xF2\xF3\xEF\xED\xB3 \xE7\xEC\xB3\xED\xED\xB3: +input - \xE2\xF5\xB3\xE4\xED\xE8\xE9 \xF2\xE5\xF1\xF2 (\xEC\xEE\xE6\xE5 \xE1\xF3\xF2\xE8 \xEF\xEE\xF0\xEE\xE6\xED\xB3\xE9) +output - \xE2\xE8\xF5\xB3\xE4 \xEF\xF0\xEE\xE3\xF0\xE0\xEC\xE8 \xE4\xEB\xFF \xEF\xE5\xF0\xE5\xE2\xB3\xF0\xEA\xE8 +correctOutput - \xEA\xEE\xF0\xE5\xEA\xF2\xED\xE8\xE9 \xE2\xE8\xF5\xB3\xE4 (\xEC\xEE\xE6\xE5 \xE1\xF3\xF2\xE8 \xEF\xEE\xF0\xEE\xE6\xED\xB3\xE9) + +\xD0\xE5\xE7\xF3\xEB\xFC\xF2\xE0\xF2 \xE2\xE8\xEA\xEE\xED\xE0\xED\xED\xFF \xF1\xEA\xF0\xB3\xEF\xF2 \xE7\xE1\xE5\xF0\xB3\xE3\xE0\xBA \xF3 \xE7\xEC\xB3\xED\xED\xF3 result +('WA','AC','PE','OE') +>>>>>>>>>>>>>>>>>>\xCF\xF0\xE8\xEA\xEB\xE0\xE4<<<<<<<<<<<<<<<<<<<<<<< + +if (output==correctOutput) +result='AC'; +else result='WA'; \ No newline at end of file Copied: ACMServer/trunk/sharp tester/Checker/Checker/scriptExample.txt (from rev 307, ACMServer/trunk/sharp tester/Checker/scriptExample.txt) =================================================================== --- ACMServer/trunk/sharp tester/Checker/Checker/scriptExample.txt (rev 0) +++ ACMServer/trunk/sharp tester/Checker/Checker/scriptExample.txt 2008-08-06 21:29:48 UTC (rev 308) @@ -0,0 +1,3 @@ +if (output==correctOutput) +result='AC'; +else result='WA'; \ No newline at end of file Deleted: ACMServer/trunk/sharp tester/Checker/Checker.cs =================================================================== --- ACMServer/trunk/sharp tester/Checker/Checker.cs 2008-08-06 20:54:59 UTC (rev 307) +++ ACMServer/trunk/sharp tester/Checker/Checker.cs 2008-08-06 21:29:48 UTC (rev 308) @@ -1,48 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; -using System.IO; - -using ScriptDotNet; - -namespace Tester -{ - public enum CheckResult - { - AC, - WA, - PE, - OE - } - public class Checker - { - public string input; - public string output; - public string correctOutput; - public string scriptPath; - - public Checker() { } - - public Checker(string scriptPath,string input, string output, string correctOutput) - { - this.input = input; - this.output = output; - this.correctOutput = output; - this.scriptPath = scriptPath; - } - - public Checker(string scriptPath, string input, string output) - : this(scriptPath,input,output,"") { } - - public CheckResult Check() - { - Script scr = Script.Compile(File.ReadAllText(scriptPath)); - scr.AddBuildInObject(input); - scr.AddBuildInObject(output); - scr.AddBuildInObject(correctOutput); - scr.Execute(); - string result = scr.Lookup("result").ToString(); - return (CheckResult)Enum.Parse(typeof(CheckResult), result); - } - } -} Deleted: ACMServer/trunk/sharp tester/Checker/Checker.csproj =================================================================== --- ACMServer/trunk/sharp tester/Checker/Checker.csproj 2008-08-06 20:54:59 UTC (rev 307) +++ ACMServer/trunk/sharp tester/Checker/Checker.csproj 2008-08-06 21:29:48 UTC (rev 308) @@ -1,48 +0,0 @@ -<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <ProductVersion>8.0.50727</ProductVersion> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{BAFD4E93-B37A-416F-807D-E2515ECB6498}</ProjectGuid> - <OutputType>Library</OutputType> - <AppDesignerFolder>Properties</AppDesignerFolder> - <RootNamespace>Checker</RootNamespace> - <AssemblyName>Checker</AssemblyName> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - <DebugSymbols>true</DebugSymbols> - <DebugType>full</DebugType> - <Optimize>false</Optimize> - <OutputPath>bin\Debug\</OutputPath> - <DefineConstants>DEBUG;TRACE</DefineConstants> - <ErrorReport>prompt</ErrorReport> - <WarningLevel>4</WarningLevel> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - <DebugType>pdbonly</DebugType> - <Optimize>true</Optimize> - <OutputPath>bin\Release\</OutputPath> - <DefineConstants>TRACE</DefineConstants> - <ErrorReport>prompt</ErrorReport> - <WarningLevel>4</WarningLevel> - </PropertyGroup> - <ItemGroup> - <Reference Include="ScriptDotNet, Version=1.0.0.1, Culture=neutral, processorArchitecture=MSIL" /> - <Reference Include="System" /> - <Reference Include="System.Data" /> - <Reference Include="System.Xml" /> - </ItemGroup> - <ItemGroup> - <Compile Include="Checker.cs" /> - <Compile Include="Properties\AssemblyInfo.cs" /> - </ItemGroup> - <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> - <!-- To modify your build process, add your task inside one of the targets below and uncomment it. - Other similar extension points exist, see Microsoft.Common.targets. - <Target Name="BeforeBuild"> - </Target> - <Target Name="AfterBuild"> - </Target> - --> -</Project> \ No newline at end of file Modified: ACMServer/trunk/sharp tester/Checker/Checker.sln =================================================================== --- ACMServer/trunk/sharp tester/Checker/Checker.sln 2008-08-06 20:54:59 UTC (rev 307) +++ ACMServer/trunk/sharp tester/Checker/Checker.sln 2008-08-06 21:29:48 UTC (rev 308) @@ -1,7 +1,7 @@ Microsoft Visual Studio Solution File, Format Version 9.00 # Visual Studio 2005 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Checker", "Checker.csproj", "{BAFD4E93-B37A-416F-807D-E2515ECB6498}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Checker", "Checker\Checker.csproj", "{BAFD4E93-B37A-416F-807D-E2515ECB6498}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Deleted: ACMServer/trunk/sharp tester/Checker/ReadMe!.txt =================================================================== --- ACMServer/trunk/sharp tester/Checker/ReadMe!.txt 2008-08-06 20:54:59 UTC (rev 307) +++ ACMServer/trunk/sharp tester/Checker/ReadMe!.txt 2008-08-06 21:29:48 UTC (rev 308) @@ -1,15 +0,0 @@ ->>>>>>>>>>>>>>\xD4\xEE\xF0\xEC\xE0\xF2 \xF1\xEA\xF0\xB3\xEF\xF2\xEE\xE2\xEE\xE3\xEE \xF4\xE0\xE9\xEB\xF3<<<<<<<<<<<<<< -\xD1\xEA\xF0\xB3\xEF\xF2\xE8 \xEF\xE8\xF8\xF3\xF2\xFC\xF1\xFF \xED\xE0 \xEC\xEE\xE2\xB3 Script.NET (\xF1\xE8\xED\xF2\xE0\xEA\xF1\xE8\xF1 \xEE\xEF\xE8\xF8\xF3 \xEF\xB3\xE7\xED\xB3\xF8\xE5) - -\xD1\xEA\xF0\xB3\xEF\xF2\xF3 \xE4\xEE\xF1\xF2\xF3\xEF\xED\xB3 \xED\xE0\xF1\xF2\xF3\xEF\xED\xB3 \xE7\xEC\xB3\xED\xED\xB3: -input - \xE2\xF5\xB3\xE4\xED\xE8\xE9 \xF2\xE5\xF1\xF2 (\xEC\xEE\xE6\xE5 \xE1\xF3\xF2\xE8 \xEF\xEE\xF0\xEE\xE6\xED\xB3\xE9) -output - \xE2\xE8\xF5\xB3\xE4 \xEF\xF0\xEE\xE3\xF0\xE0\xEC\xE8 \xE4\xEB\xFF \xEF\xE5\xF0\xE5\xE2\xB3\xF0\xEA\xE8 -correctOutput - \xEA\xEE\xF0\xE5\xEA\xF2\xED\xE8\xE9 \xE2\xE8\xF5\xB3\xE4 (\xEC\xEE\xE6\xE5 \xE1\xF3\xF2\xE8 \xEF\xEE\xF0\xEE\xE6\xED\xB3\xE9) - -\xD0\xE5\xE7\xF3\xEB\xFC\xF2\xE0\xF2 \xE2\xE8\xEA\xEE\xED\xE0\xED\xED\xFF \xF1\xEA\xF0\xB3\xEF\xF2 \xE7\xE1\xE5\xF0\xB3\xE3\xE0\xBA \xF3 \xE7\xEC\xB3\xED\xED\xF3 result -('WA','AC','PE','OE') ->>>>>>>>>>>>>>>>>>\xCF\xF0\xE8\xEA\xEB\xE0\xE4<<<<<<<<<<<<<<<<<<<<<<< - -if (output==correctOutput) -result='AC'; -else result='WA'; \ No newline at end of file Deleted: ACMServer/trunk/sharp tester/Checker/scriptExample.txt =================================================================== --- ACMServer/trunk/sharp tester/Checker/scriptExample.txt 2008-08-06 20:54:59 UTC (rev 307) +++ ACMServer/trunk/sharp tester/Checker/scriptExample.txt 2008-08-06 21:29:48 UTC (rev 308) @@ -1,3 +0,0 @@ -if (output==correctOutput) -result='AC'; -else result='WA'; \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |