Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Rohne committed Aug 3, 2012
0 parents commit 054bf2c
Show file tree
Hide file tree
Showing 56 changed files with 388 additions and 0 deletions.
Binary file added Debug/Path2CSV.exe
Binary file not shown.
Binary file added Debug/Path2CSV.ilk
Binary file not shown.
Binary file added Debug/Path2CSV.pdb
Binary file not shown.
Binary file added Debug/VoyagerFileAccess.dll
Binary file not shown.
Binary file added Debug/VoyagerFileAccess.lib
Binary file not shown.
Binary file added Path2CSV.sdf
Binary file not shown.
20 changes: 20 additions & 0 deletions Path2CSV.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual C++ Express 2010
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Path2CSV", "Path2CSV\Path2CSV.vcxproj", "{D9782223-7ECB-4DCA-BE4B-EC9D0D8D7008}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Release|Win32 = Release|Win32
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{D9782223-7ECB-4DCA-BE4B-EC9D0D8D7008}.Debug|Win32.ActiveCfg = Debug|Win32
{D9782223-7ECB-4DCA-BE4B-EC9D0D8D7008}.Debug|Win32.Build.0 = Debug|Win32
{D9782223-7ECB-4DCA-BE4B-EC9D0D8D7008}.Release|Win32.ActiveCfg = Release|Win32
{D9782223-7ECB-4DCA-BE4B-EC9D0D8D7008}.Release|Win32.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
Binary file added Path2CSV.suo
Binary file not shown.
Binary file added Path2CSV/Debug/CL.read.1.tlog
Binary file not shown.
Binary file added Path2CSV/Debug/CL.write.1.tlog
Binary file not shown.
10 changes: 10 additions & 0 deletions Path2CSV/Debug/Path2CSV.exe.embed.manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="asInvoker" uiAccess="false"></requestedExecutionLevel>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>
Binary file added Path2CSV/Debug/Path2CSV.exe.embed.manifest.res
Binary file not shown.
10 changes: 10 additions & 0 deletions Path2CSV/Debug/Path2CSV.exe.intermediate.manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level='asInvoker' uiAccess='false' />
</requestedPrivileges>
</security>
</trustInfo>
</assembly>
2 changes: 2 additions & 0 deletions Path2CSV/Debug/Path2CSV.lastbuildstate
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#v4.0:v100:false
Debug|Win32|C:\SOURCE\Path2CSV\|
29 changes: 29 additions & 0 deletions Path2CSV/Debug/Path2CSV.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
Build started 8/3/2012 8:58:30 AM.
1>Project "C:\SOURCE\Path2CSV\Path2CSV\Path2CSV.vcxproj" on node 2 (build target(s)).
1>InitializeBuildStatus:
Creating "Debug\Path2CSV.unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
All outputs are up-to-date.
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\CL.exe /c /ZI /nologo /W3 /WX- /Od /Oy- /D WIN32 /D _DEBUG /D _CONSOLE /Gm /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Yu"StdAfx.h" /Fp"Debug\Path2CSV.pch" /Fo"Debug\\" /Fd"Debug\vc100.pdb" /Gd /TP /analyze- /errorReport:prompt Path2CSV.cpp
Path2CSV.cpp
ManifestResourceCompile:
All outputs are up-to-date.
Link:
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\link.exe /ERRORREPORT:PROMPT /OUT:"C:\SOURCE\Path2CSV\Debug\Path2CSV.exe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /ManifestFile:"Debug\Path2CSV.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"C:\SOURCE\Path2CSV\Debug\Path2CSV.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:\SOURCE\Path2CSV\Debug\Path2CSV.lib" /MACHINE:X86 Debug\Path2CSV.exe.embed.manifest.res
Debug\Path2CSV.obj
Debug\stdafx.obj
..\external\VoyagerFileAccess.lib
Manifest:
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\mt.exe /nologo /verbose /out:"Debug\Path2CSV.exe.embed.manifest" /manifest Debug\Path2CSV.exe.intermediate.manifest
All outputs are up-to-date.
LinkEmbedManifest:
All outputs are up-to-date.
Path2CSV.vcxproj -> C:\SOURCE\Path2CSV\Debug\Path2CSV.exe
FinalizeBuildStatus:
Deleting file "Debug\Path2CSV.unsuccessfulbuild".
Touching "Debug\Path2CSV.lastbuildstate".
1>Done Building Project "C:\SOURCE\Path2CSV\Path2CSV\Path2CSV.vcxproj" (build target(s)).

Build succeeded.

Time Elapsed 00:00:01.28
Binary file added Path2CSV/Debug/Path2CSV.obj
Binary file not shown.
Binary file added Path2CSV/Debug/Path2CSV.pch
Binary file not shown.
Binary file added Path2CSV/Debug/Path2CSV_manifest.rc
Binary file not shown.
Binary file added Path2CSV/Debug/cl.command.1.tlog
Binary file not shown.
1 change: 1 addition & 0 deletions Path2CSV/Debug/link-cvtres.read.1.tlog
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
1 change: 1 addition & 0 deletions Path2CSV/Debug/link-cvtres.write.1.tlog
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
1 change: 1 addition & 0 deletions Path2CSV/Debug/link.1536-cvtres.read.1.tlog
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
1 change: 1 addition & 0 deletions Path2CSV/Debug/link.1536-cvtres.write.1.tlog
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
1 change: 1 addition & 0 deletions Path2CSV/Debug/link.1536.read.1.tlog
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
1 change: 1 addition & 0 deletions Path2CSV/Debug/link.1536.write.1.tlog
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
1 change: 1 addition & 0 deletions Path2CSV/Debug/link.5972-cvtres.read.1.tlog
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
1 change: 1 addition & 0 deletions Path2CSV/Debug/link.5972-cvtres.write.1.tlog
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
1 change: 1 addition & 0 deletions Path2CSV/Debug/link.5972.read.1.tlog
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
1 change: 1 addition & 0 deletions Path2CSV/Debug/link.5972.write.1.tlog
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
1 change: 1 addition & 0 deletions Path2CSV/Debug/link.6996-cvtres.read.1.tlog
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
1 change: 1 addition & 0 deletions Path2CSV/Debug/link.6996-cvtres.write.1.tlog
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
1 change: 1 addition & 0 deletions Path2CSV/Debug/link.6996.read.1.tlog
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
1 change: 1 addition & 0 deletions Path2CSV/Debug/link.6996.write.1.tlog
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Binary file added Path2CSV/Debug/link.command.1.tlog
Binary file not shown.
Binary file added Path2CSV/Debug/link.read.1.tlog
Binary file not shown.
Binary file added Path2CSV/Debug/link.write.1.tlog
Binary file not shown.
Binary file added Path2CSV/Debug/mt.command.1.tlog
Binary file not shown.
Binary file added Path2CSV/Debug/mt.read.1.tlog
Binary file not shown.
Binary file added Path2CSV/Debug/mt.write.1.tlog
Binary file not shown.
Binary file added Path2CSV/Debug/rc.command.1.tlog
Binary file not shown.
Binary file added Path2CSV/Debug/rc.read.1.tlog
Binary file not shown.
Binary file added Path2CSV/Debug/rc.write.1.tlog
Binary file not shown.
Binary file added Path2CSV/Debug/stdafx.obj
Binary file not shown.
Binary file added Path2CSV/Debug/vc100.idb
Binary file not shown.
Binary file added Path2CSV/Debug/vc100.pdb
Binary file not shown.
48 changes: 48 additions & 0 deletions Path2CSV/Path2CSV.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
// Path2CSV.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <stdio.h>
#include <iostream>
#include <fstream>

using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
if(argc!=3){
cout << "Call this program with:" << endl << endl;
cout << "Path2CSV input.pth output.csv" << endl;
}

char errMsg[256];
void* path=PathReaderOpen(argv[1],errMsg,256);

int prrn=1;
PathRead_Data prd;
prd.nodes=new int[PathReaderGetMaxPathLen(path)];
prd.costs=new int[PathReaderGetMaxPathLen(path)];
prd.vols=new float[PathReaderGetHighestVol(path)];
int nPaths=PathReaderGetNumPaths(path);
int countPaths=0;
ofstream of;
of.open(argv[2],iostream::trunc);
while((prrn=PathReaderReadNext(path,&prd))>0){
countPaths++;
if(countPaths % 100)
of << prd.I << ",";
for(int pn=0;pn<prrn;pn++){
of << prd.nodes[pn];
if(prd.nodes[pn]!=prd.J)
of <<",";
}
of << endl;
}
of.close();
delete[] prd.nodes;
delete[] prd.costs;
delete[] prd.vols;

return 0;
}

94 changes: 94 additions & 0 deletions Path2CSV/Path2CSV.vcxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{D9782223-7ECB-4DCA-BE4B-EC9D0D8D7008}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>Path2CSV</RootNamespace>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<CharacterSet>NotSet</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LinkIncremental>true</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<PrecompiledHeader>Use</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>Use</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<None Include="ReadMe.txt" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="stdafx.h" />
<ClInclude Include="targetver.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="Path2CSV.cpp" />
<ClCompile Include="stdafx.cpp">
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
</ClCompile>
</ItemGroup>
<ItemGroup>
<Library Include="..\external\VoyagerFileAccess.lib" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
39 changes: 39 additions & 0 deletions Path2CSV/Path2CSV.vcxproj.filters
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Source Files">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
<Filter Include="Header Files">
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
</Filter>
<Filter Include="Resource Files">
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<None Include="ReadMe.txt" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="stdafx.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="targetver.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="stdafx.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="Path2CSV.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<Library Include="..\external\VoyagerFileAccess.lib" />
</ItemGroup>
</Project>
7 changes: 7 additions & 0 deletions Path2CSV/Path2CSV.vcxproj.user
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LocalDebuggerCommandArguments>"C:\Modelrun\FieldsErtel\NewTripGen\Base\LoopRamp\Outputs\AMPaths.pth" "C:\Temp\Pathout.CSV"</LocalDebuggerCommandArguments>
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
</PropertyGroup>
</Project>
40 changes: 40 additions & 0 deletions Path2CSV/ReadMe.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
========================================================================
CONSOLE APPLICATION : Path2CSV Project Overview
========================================================================

AppWizard has created this Path2CSV application for you.

This file contains a summary of what you will find in each of the files that
make up your Path2CSV application.


Path2CSV.vcxproj
This is the main project file for VC++ projects generated using an Application Wizard.
It contains information about the version of Visual C++ that generated the file, and
information about the platforms, configurations, and project features selected with the
Application Wizard.

Path2CSV.vcxproj.filters
This is the filters file for VC++ projects generated using an Application Wizard.
It contains information about the association between the files in your project
and the filters. This association is used in the IDE to show grouping of files with
similar extensions under a specific node (for e.g. ".cpp" files are associated with the
"Source Files" filter).

Path2CSV.cpp
This is the main application source file.

/////////////////////////////////////////////////////////////////////////////
Other standard files:

StdAfx.h, StdAfx.cpp
These files are used to build a precompiled header (PCH) file
named Path2CSV.pch and a precompiled types file named StdAfx.obj.

/////////////////////////////////////////////////////////////////////////////
Other notes:

AppWizard uses "TODO:" comments to indicate parts of the source code you
should add to or customize.

/////////////////////////////////////////////////////////////////////////////
8 changes: 8 additions & 0 deletions Path2CSV/stdafx.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// stdafx.cpp : source file that includes just the standard includes
// Path2CSV.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information

#include "stdafx.h"

// TODO: reference any additional headers you need in STDAFX.H
// and not in this file
Loading

0 comments on commit 054bf2c

Please sign in to comment.