Changeset 4
- Timestamp:
- 02/15/11 10:51:30 (14 years ago)
- Location:
- Dev/LoggingTool
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/LoggingTool/LoggingTool.csproj
r3 r4 54 54 </ItemGroup> 55 55 <ItemGroup> 56 <Compile Include="LoggingTool.cs" />57 56 <Compile Include="interfaces\TeamUpLogic.cs" /> 58 57 <Compile Include="interfaces\ILoggerLogic.cs" /> 59 58 <Compile Include="interfaces\TeamUpSpreadsheetOutput.cs" /> 60 59 <Compile Include="interfaces\ILoggerOutput.cs" /> 61 <Compile Include="models\SVData.cs" />62 60 <Compile Include="models\TeamUpEvent.cs" /> 63 61 <Compile Include="models\TeamUpQuestionnaire.cs" /> 64 62 <Compile Include="models\LoggerMessage.cs" /> 65 63 <Compile Include="models\TeamUpSpreadsheetMessage.cs" /> 66 <Compile Include="network\SVProtocolClientData.cs" />67 <Compile Include="network\SVProtocol.cs" />68 64 <Compile Include="TestSpreadsheetOutput.cs" /> 69 65 <Compile Include="Properties\AssemblyInfo.cs" /> 70 66 </ItemGroup> 71 <ItemGroup> 72 <ProjectReference Include="..\..\..\UDKTCPLink\UDKTCPLink\UDKTCPLink.csproj"> 73 <Project>{5FB0E6BA-4999-494D-B6A4-7E884E6B4B6F}</Project> 74 <Name>UDKTCPLink</Name> 75 </ProjectReference> 76 </ItemGroup> 67 <ItemGroup /> 77 68 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> 78 69 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
Dev/LoggingTool/LoggingTool.sln
r3 r4 4 4 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LoggingTool", "LoggingTool.csproj", "{B5F52C17-DB39-47A9-8A4A-31FB4DE899EA}" 5 5 EndProject 6 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UDKTCPLink", "..\..\..\UDKTCPLink\UDKTCPLink\UDKTCPLink.csproj", "{5FB0E6BA-4999-494D-B6A4-7E884E6B4B6F}"7 EndProject8 6 Global 9 7 GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 Debug|Any CPU = Debug|Any CPU11 Debug|Mixed Platforms = Debug|Mixed Platforms12 8 Debug|x86 = Debug|x86 13 Release|Any CPU = Release|Any CPU14 Release|Mixed Platforms = Release|Mixed Platforms15 9 Release|x86 = Release|x86 16 10 EndGlobalSection 17 11 GlobalSection(ProjectConfigurationPlatforms) = postSolution 18 {B5F52C17-DB39-47A9-8A4A-31FB4DE899EA}.Debug|Any CPU.ActiveCfg = Debug|x8619 {B5F52C17-DB39-47A9-8A4A-31FB4DE899EA}.Debug|Mixed Platforms.ActiveCfg = Debug|x8620 {B5F52C17-DB39-47A9-8A4A-31FB4DE899EA}.Debug|Mixed Platforms.Build.0 = Debug|x8621 12 {B5F52C17-DB39-47A9-8A4A-31FB4DE899EA}.Debug|x86.ActiveCfg = Debug|x86 22 13 {B5F52C17-DB39-47A9-8A4A-31FB4DE899EA}.Debug|x86.Build.0 = Debug|x86 23 {B5F52C17-DB39-47A9-8A4A-31FB4DE899EA}.Release|Any CPU.ActiveCfg = Release|x8624 {B5F52C17-DB39-47A9-8A4A-31FB4DE899EA}.Release|Mixed Platforms.ActiveCfg = Release|x8625 {B5F52C17-DB39-47A9-8A4A-31FB4DE899EA}.Release|Mixed Platforms.Build.0 = Release|x8626 14 {B5F52C17-DB39-47A9-8A4A-31FB4DE899EA}.Release|x86.ActiveCfg = Release|x86 27 15 {B5F52C17-DB39-47A9-8A4A-31FB4DE899EA}.Release|x86.Build.0 = Release|x86 28 {5FB0E6BA-4999-494D-B6A4-7E884E6B4B6F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU29 {5FB0E6BA-4999-494D-B6A4-7E884E6B4B6F}.Debug|Any CPU.Build.0 = Debug|Any CPU30 {5FB0E6BA-4999-494D-B6A4-7E884E6B4B6F}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU31 {5FB0E6BA-4999-494D-B6A4-7E884E6B4B6F}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU32 {5FB0E6BA-4999-494D-B6A4-7E884E6B4B6F}.Debug|x86.ActiveCfg = Debug|Any CPU33 {5FB0E6BA-4999-494D-B6A4-7E884E6B4B6F}.Release|Any CPU.ActiveCfg = Release|Any CPU34 {5FB0E6BA-4999-494D-B6A4-7E884E6B4B6F}.Release|Any CPU.Build.0 = Release|Any CPU35 {5FB0E6BA-4999-494D-B6A4-7E884E6B4B6F}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU36 {5FB0E6BA-4999-494D-B6A4-7E884E6B4B6F}.Release|Mixed Platforms.Build.0 = Release|Any CPU37 {5FB0E6BA-4999-494D-B6A4-7E884E6B4B6F}.Release|x86.ActiveCfg = Release|Any CPU38 16 EndGlobalSection 39 17 GlobalSection(SolutionProperties) = preSolution -
Dev/LoggingTool/TestSpreadsheetOutput.cs
r3 r4 9 9 using LoggingTool.models; 10 10 using System.IO; 11 using UDKTCPLink;12 using LoggingTool.network;13 using System.Threading;14 11 15 12 namespace LoggingTool … … 18 15 { 19 16 20 /*static void Main(string[] args)17 static void Main(string[] args) 21 18 { 22 //new SpreadsheetLogicTest();19 new SpreadsheetLogicTest(); 23 20 Console.ReadKey(); 24 } */21 } 25 22 } 26 23 class SpreadsheetOutputTest … … 30 27 public SpreadsheetOutputTest() 31 28 { 32 output = new TeamUpSpeadsheetOutput(" cpsgamingstreet@gmail.com", "wachtwoord2009", "GDataTest");29 output = new TeamUpSpeadsheetOutput("kaidencez@gmail.com", "verboden", "GDataTest"); 33 30 LoggerMessage questionnaireMessage = new TeamUpSpreadsheetMessage(TeamUpSpreadsheetMessage.QUESTIONNAIRE, new List<String>() {"1", "11.8940", "1", "20", "0", "1", "2", "3", "4", "5", "6", "7", "8"}); 34 31 LoggerMessage eventMessage = new TeamUpSpreadsheetMessage(TeamUpSpreadsheetMessage.EVENT, new List<String>() {"1", "11.8940", "1337"}); … … 38 35 } 39 36 40 /* class SpreadsheetLogicTest 41 { 42 private ILoggerLogic logic; 43 private ILoggerOutput output; 44 private ILoggerInput input; 37 class SpreadsheetLogicTest 38 { 39 private ILoggerLogic logic; 40 private ILoggerOutput output; 45 41 46 public SpreadsheetLogicTest() 47 { 42 public SpreadsheetLogicTest() 43 { 44 logic = new TeamUpLogic(); 45 output = new TeamUpSpeadsheetOutput("kaidencez@gmail.com", "verboden", "GDataTest"); 46 //Create some filestreams for testing purposes 47 FileStream fQ = new FileStream("D:\\jkraaijeveld\\Desktop\\questionnaires.log", FileMode.Open); 48 FileStream fE = new FileStream("D:\\jkraaijeveld\\Desktop\\events.log", FileMode.Open); 49 StreamReader sQ = new StreamReader(fQ); 50 StreamReader sE = new StreamReader(fE); 48 51 49 Console.WriteLine("Setting up Logic"); 50 logic = new TeamUpLogic(); 51 Console.WriteLine("Setting up Output"); 52 output = new TeamUpSpeadsheetOutput("cpsgamingstreet@gmail.com", "wachtwoord2009", "GDataTest"); 53 Console.WriteLine("Setting up Input"); 54 input = new TeamUpInput(logic); 52 //Read everything in both of the files 53 while (!sQ.EndOfStream) 54 { 55 logic.addInput(sQ.ReadLine()); 56 } 57 while (!sE.EndOfStream) 58 { 59 logic.addInput(sE.ReadLine()); 60 } 55 61 56 Console.WriteLine("Setting up Server"); 57 TeamUpServer server = new TeamUpServer(); 58 Console.WriteLine("Setting Protocol"); 59 server.Protocol = new TeamUpProtocol(server); 60 Console.WriteLine("Activating Server"); 61 server.Activate(input); 62 while (true) 63 Thread.Sleep(1000); 64 65 66 /* 67 //Create some filestreams for testing purposes 68 FileStream fQ = new FileStream("D:\\jkraaijeveld\\Desktop\\questionnaires.log", FileMode.Open); 69 FileStream fE = new FileStream("D:\\jkraaijeveld\\Desktop\\events.log", FileMode.Open); 70 StreamReader sQ = new StreamReader(fQ); 71 StreamReader sE = new StreamReader(fE); 72 73 //Read everything in both of the files 74 while (!sQ.EndOfStream) 75 { 76 logic.addInput(sQ.ReadLine()); 77 } 78 while (!sE.EndOfStream) 79 { 80 logic.addInput(sE.ReadLine()); 81 } 82 83 //Create all the models 84 logic.createModels(); 85 //Write them 86 List<LoggerMessage> messages = logic.formatModels(); 87 foreach (LoggerMessage message in messages) 88 { 89 output.send(message); 90 } 91 } 92 }*/ 93 94 95 96 97 98 99 100 101 62 //Create all the models 63 logic.createModels(); 64 //Write them 65 List<LoggerMessage> messages = logic.formatModels(); 66 foreach (LoggerMessage message in messages) 67 { 68 output.send(message); 69 } 70 } 71 } 72 73 74 75 76 77 78 79 80 102 81 /*static void Main(string[] args) 103 82 {
Note: See TracChangeset
for help on using the changeset viewer.