exceptions.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <stdexcept>
4
5
6
namespace
visionx::voxelgrid
7
{
8
class
VoxelGridStructure
;
9
}
10
11
12
namespace
visionx::voxelgrid::error
13
{
14
15
/**
16
* @brief Base class for exceptions in this library.
17
*/
18
class
VoxelGridError
:
public
std::runtime_error
19
{
20
public
:
21
using
std::runtime_error::runtime_error;
22
};
23
24
25
/**
26
* @brief Indicates that voxel data with an invalid number of voxels
27
* has been passed to a VoxelGrid.
28
*/
29
class
InvalidVoxelDataSize
:
public
VoxelGridError
30
{
31
public
:
32
InvalidVoxelDataSize
(std::size_t actual, std::size_t expected);
33
34
private
:
35
std::string makeMsg(std::size_t actual, std::size_t expected);
36
37
};
38
39
/**
40
* @brief Indicates that a voxel grid structure should have matched
41
* another one, but did not.
42
*/
43
class
InvalidStructure
:
public
VoxelGridError
44
{
45
public
:
46
InvalidStructure
(
const
VoxelGridStructure
& expected,
47
const
VoxelGridStructure
& actual,
48
const
std::string&
message
=
"Voxel grid structure does not match."
);
49
50
private
:
51
std::string makeMsg(
const
VoxelGridStructure
& expected,
52
const
VoxelGridStructure
& actual,
53
const
std::string&
message
);
54
55
};
56
57
58
59
}
60
61
visionx::VoxelGridStructure
voxelgrid::VoxelGridStructure VoxelGridStructure
Definition:
VoxelGridCore.h:35
visionx::voxelgrid::error::InvalidStructure::InvalidStructure
InvalidStructure(const VoxelGridStructure &expected, const VoxelGridStructure &actual, const std::string &message="Voxel grid structure does not match.")
Definition:
exceptions.cpp:24
visionx::voxelgrid::error
Definition:
exceptions.cpp:8
message
message(STATUS "Boost-Library-Dir: " "${Boost_LIBRARY_DIRS}") message(STATUS "Boost-LIBRARIES
Definition:
CMakeLists.txt:8
visionx::voxelgrid::error::InvalidVoxelDataSize
Indicates that voxel data with an invalid number of voxels has been passed to a VoxelGrid.
Definition:
exceptions.h:29
visionx::voxelgrid
Definition:
exceptions.cpp:8
visionx::voxelgrid::error::InvalidVoxelDataSize::InvalidVoxelDataSize
InvalidVoxelDataSize(std::size_t actual, std::size_t expected)
Definition:
exceptions.cpp:11
visionx::voxelgrid::VoxelGridStructure
Geometric structure of a 3D voxel grid.
Definition:
VoxelGridStructure.h:96
visionx::voxelgrid::error::VoxelGridError
Base class for exceptions in this library.
Definition:
exceptions.h:18
visionx::voxelgrid::error::InvalidStructure
Indicates that a voxel grid structure should have matched another one, but did not.
Definition:
exceptions.h:43
VisionX
libraries
VoxelGridCore
exceptions.h
Generated on Sat Oct 12 2024 09:14:06 for armarx_documentation by
1.8.17