Changeset 1157:d8569269899f
- Timestamp:
- 04/16/09 09:11:33 (16 months ago)
- Branch:
- default
- Convert:
- svn:1766ff46-f334-0410-ab20-d63176f87757/trunk@1222
- Files:
-
- 4 edited
-
build/msvc90/las2ogr/las2ogr.vcproj (modified) (7 diffs)
-
build/msvc90/liblas.sln (modified) (2 diffs)
-
include/liblas/lasclassification.hpp (modified) (1 diff)
-
test/unit/lasclassification_test.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
build/msvc90/las2ogr/las2ogr.vcproj
r904 r1157 2 2 <VisualStudioProject 3 3 ProjectType="Visual C++" 4 Version=" 8.00"4 Version="9.00" 5 5 Name="las2ogr" 6 6 ProjectGUID="{0CE46FF7-F5B6-4EE2-B8EE-37B5555CAC62}" 7 7 RootNamespace="las2ogr" 8 8 Keyword="Win32Proj" 9 TargetFrameworkVersion="131072" 9 10 > 10 11 <Platforms> … … 21 22 IntermediateDirectory="$(ConfigurationName)" 22 23 ConfigurationType="1" 23 InheritedPropertySheets="..\liblas.vsprops ;.\las2ogr.vsprops"24 InheritedPropertySheets="..\liblas.vsprops" 24 25 CharacterSet="1" 25 26 > … … 66 67 GenerateDebugInformation="true" 67 68 SubSystem="1" 69 RandomizedBaseAddress="1" 70 DataExecutionPrevention="0" 68 71 TargetMachine="1" 69 72 /> … … 87 90 /> 88 91 <Tool 89 Name="VCWebDeploymentTool"90 />91 <Tool92 92 Name="VCPostBuildEventTool" 93 93 /> … … 98 98 IntermediateDirectory="$(ConfigurationName)" 99 99 ConfigurationType="1" 100 InheritedPropertySheets="..\liblas.vsprops ;.\las2ogr.vsprops"100 InheritedPropertySheets="..\liblas.vsprops" 101 101 CharacterSet="1" 102 102 WholeProgramOptimization="1" … … 142 142 OptimizeReferences="2" 143 143 EnableCOMDATFolding="2" 144 RandomizedBaseAddress="1" 145 DataExecutionPrevention="0" 144 146 TargetMachine="1" 145 147 /> … … 163 165 /> 164 166 <Tool 165 Name="VCWebDeploymentTool"166 />167 <Tool168 167 Name="VCPostBuildEventTool" 169 168 /> -
build/msvc90/liblas.sln
r1099 r1157 62 62 EndProjectSection 63 63 EndProject 64 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "las2ogr", "las2ogr\las2ogr.vcproj", "{0CE46FF7-F5B6-4EE2-B8EE-37B5555CAC62}" 65 ProjectSection(ProjectDependencies) = postProject 66 {208417AE-D08E-4938-AC26-A16ABD55AA5B} = {208417AE-D08E-4938-AC26-A16ABD55AA5B} 67 EndProjectSection 68 EndProject 64 69 Global 65 70 GlobalSection(SolutionConfigurationPlatforms) = preSolution … … 104 109 {C78B8A0D-12CE-49D6-8615-96B9735564D5}.Release|Win32.ActiveCfg = Release|Win32 105 110 {C78B8A0D-12CE-49D6-8615-96B9735564D5}.Release|Win32.Build.0 = Release|Win32 111 {0CE46FF7-F5B6-4EE2-B8EE-37B5555CAC62}.Debug|Win32.ActiveCfg = Debug|Win32 112 {0CE46FF7-F5B6-4EE2-B8EE-37B5555CAC62}.Debug|Win32.Build.0 = Debug|Win32 113 {0CE46FF7-F5B6-4EE2-B8EE-37B5555CAC62}.Release|Win32.ActiveCfg = Release|Win32 114 {0CE46FF7-F5B6-4EE2-B8EE-37B5555CAC62}.Release|Win32.Build.0 = Release|Win32 106 115 EndGlobalSection 107 116 GlobalSection(SolutionProperties) = preSolution -
include/liblas/lasclassification.hpp
r1155 r1157 131 131 { 132 132 bitset_type bits(m_flags); 133 bitset_type const mask( class_table_size- 1);133 bitset_type const mask(static_cast<unsigned long>(class_table_size) - 1); 134 134 bits &= mask; 135 135 -
test/unit/lasclassification_test.cpp
r1155 r1157 378 378 ensure_equals(m_default.GetClassName(), cn); 379 379 } 380 381 template<> 382 template<> 383 void to::test<21>() 384 { 385 std::string const cn("Low Point (noise)"); 386 m_default.SetClass(7); 387 ensure_equals(m_default.GetClassName(), cn); 388 } 389 390 template<> 391 template<> 392 void to::test<22>() 393 { 394 std::string const cn("Reserved for ASPRS Definition"); 395 m_default.SetClass(31); 396 ensure_equals(m_default.GetClassName(), cn); 397 } 398 399 template<> 400 template<> 401 void to::test<23>() 402 { 403 try 404 { 405 m_default.SetClass(32); 406 fail("std::out_of_range not thrown but expected"); 407 } 408 catch (std::out_of_range const& e) 409 { 410 ensure(e.what(), true); 411 } 412 catch (...) 413 { 414 fail("unhandled exception expected"); 415 } 416 } 380 417 }
Note: See TracChangeset
for help on using the changeset viewer.
