File tree 1 file changed +13
-8
lines changed
1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change 1
- #include " six/Parameter.h"
2
- #include " six/ParameterCollection.h"
1
+ #include < except/Exception.h>
2
+ #include < six/Parameter.h>
3
+ #include < six/ParameterCollection.h>
3
4
4
- #include < import/except.h>
5
-
6
- size_t six::ParameterCollection::findParameterIndex (const std::string& paramName) const
5
+ namespace six
6
+ {
7
+ size_t
8
+ ParameterCollection::findParameterIndex (const std::string& paramName) const
7
9
{
8
10
for (size_t ii = 0 ; ii < mParams .size (); ++ii)
9
11
{
@@ -13,11 +15,13 @@ size_t six::ParameterCollection::findParameterIndex(const std::string& paramName
13
15
}
14
16
}
15
17
16
- throw except::Exception (" No parameter with name \" " + paramName
17
- + " \" found in this collection" );
18
+ throw except::NoSuchKeyException (Ctxt (
19
+ " No parameter with name \" " + paramName
20
+ + " \" found in this collection" ));
18
21
}
19
22
20
- bool six::ParameterCollection::containsParameter (const std::string& paramName) const
23
+ bool
24
+ ParameterCollection::containsParameter (const std::string& paramName) const
21
25
{
22
26
for (size_t ii = 0 ; ii < mParams .size (); ++ii)
23
27
{
@@ -29,3 +33,4 @@ bool six::ParameterCollection::containsParameter(const std::string& paramName) c
29
33
30
34
return false ;
31
35
}
36
+ }
You can’t perform that action at this time.
0 commit comments