Skip to content

Commit

Permalink
issue #2 Error and error.hpp merged
Browse files Browse the repository at this point in the history
  • Loading branch information
dibyendumajumdar committed May 8, 2020
1 parent ff687df commit e41882e
Show file tree
Hide file tree
Showing 16 changed files with 18 additions and 21 deletions.
2 changes: 1 addition & 1 deletion examples/segmented_mirror/segmented.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
#include <goptical/core/math/VectorPair>
#include <goptical/core/math/Vector>

#include <goptical/core/Error>
#include <goptical/core/error.hpp>

using namespace goptical;

Expand Down
7 changes: 0 additions & 7 deletions include/goptical/core/Error

This file was deleted.

4 changes: 4 additions & 0 deletions include/goptical/core/error.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,9 @@ class Error : public std::runtime_error

}

namespace goptical {
using _goptical::Error;
}

#endif

2 changes: 1 addition & 1 deletion src/core/curve_foucault.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
*/

#include <goptical/core/Error>
#include <goptical/core/error.hpp>
#include <goptical/core/curve/Foucault>
#include <goptical/core/math/Vector>

Expand Down
2 changes: 1 addition & 1 deletion src/core/data_discrete_set.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

#include <iostream>

#include <goptical/core/Error>
#include <goptical/core/error.hpp>
#include <goptical/core/data/DiscreteSet>

#include "data_interpolate_1d_.hxx"
Expand Down
2 changes: 1 addition & 1 deletion src/core/data_grid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
*/

#include <goptical/core/data/Grid>
#include <goptical/core/Error>
#include <goptical/core/error.hpp>

namespace _goptical {

Expand Down
2 changes: 1 addition & 1 deletion src/core/data_plot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

#include <limits>

#include <goptical/core/Error>
#include <goptical/core/error.hpp>

#include <goptical/core/data/Plot>
#include <goptical/core/data/PlotData>
Expand Down
2 changes: 1 addition & 1 deletion src/core/data_sample_set.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
*/


#include <goptical/core/Error>
#include <goptical/core/error.hpp>
#include <goptical/core/data/SampleSet>

#include "data_interpolate_1d_.hxx"
Expand Down
2 changes: 1 addition & 1 deletion src/core/data_set.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <limits>
#include <iostream>

#include <goptical/core/Error>
#include <goptical/core/error.hpp>
#include <goptical/core/data/Set>

namespace _goptical
Expand Down
2 changes: 1 addition & 1 deletion src/core/io_import_oslo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
*/

#include <goptical/core/io/ImportOslo>
#include <goptical/core/Error>
#include <goptical/core/error.hpp>

#include <goptical/core/material/Dielectric>
#include <goptical/core/material/Catalog>
Expand Down
2 changes: 1 addition & 1 deletion src/core/io_import_zemax.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
*/

#include <goptical/core/io/ImportZemax>
#include <goptical/core/Error>
#include <goptical/core/error.hpp>

#include <goptical/core/shape/Infinite>
#include <goptical/core/shape/Disk>
Expand Down
2 changes: 1 addition & 1 deletion src/core/io_renderer_gd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include <goptical/core/io/RendererGd>
#include <goptical/core/trace/Result>
#include <goptical/core/trace/Ray>
#include <goptical/core/Error>
#include <goptical/core/error.hpp>

namespace _goptical {

Expand Down
2 changes: 1 addition & 1 deletion src/core/shape_infinite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include <goptical/core/sys/Surface>
#include <goptical/core/shape/Infinite>
#include <goptical/core/math/Vector>
#include <goptical/core/Error>
#include <goptical/core/error.hpp>

namespace _goptical {

Expand Down
2 changes: 1 addition & 1 deletion src/core/sys_container.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include <goptical/core/math/Transform>
#include <goptical/core/io/RendererViewport>

#include <goptical/core/Error>
#include <goptical/core/error.hpp>

#include <limits>

Expand Down
2 changes: 1 addition & 1 deletion src/core/sys_system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <goptical/core/sys/Group>
#include <goptical/core/sys/Container>

#include <goptical/core/Error>
#include <goptical/core/error.hpp>
#include <goptical/core/sys/Surface>
#include <goptical/core/sys/Source>
#include <goptical/core/sys/OpticalSurface>
Expand Down
2 changes: 1 addition & 1 deletion src/core/trace_tracer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include <goptical/core/trace/Ray>
#include <goptical/core/sys/System>
#include <goptical/core/sys/Source>
#include <goptical/core/Error>
#include <goptical/core/error.hpp>
#include <goptical/core/sys/Surface>
#include <goptical/core/math/VectorPair>
#include <goptical/core/trace/Distribution>
Expand Down

0 comments on commit e41882e

Please sign in to comment.