Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ORNL Quantum Computing Institute
xacc
Commits
58a1cf7a
Commit
58a1cf7a
authored
Apr 20, 2018
by
Mccaskey, Alex
Browse files
adding xacc.unsetOption
Signed-off-by:
Alex McCaskey
<
mccaskeyaj@ornl.gov
>
parent
f4ae990e
Changes
2
Hide whitespace changes
Inline
Side-by-side
xacc/XACC.cpp
View file @
58a1cf7a
...
...
@@ -173,6 +173,12 @@ void setOption(const std::string& optionKey, const std::string& value) {
RuntimeOptions
::
instance
()
->
insert
(
std
::
make_pair
(
optionKey
,
value
));
}
}
void
unsetOption
(
const
std
::
string
&
optionKey
)
{
if
(
!
optionExists
(
optionKey
))
{
error
(
"Invalid runtime option - "
+
optionKey
);
}
(
*
RuntimeOptions
::
instance
()).
erase
(
optionKey
);
}
void
setCompiler
(
const
std
::
string
&
compilerName
)
{
setOption
(
"compiler"
,
compilerName
);
...
...
xacc/XACC.hpp
View file @
58a1cf7a
...
...
@@ -168,6 +168,8 @@ const std::string getOption(const std::string& optionKey);
*/
void
setOption
(
const
std
::
string
&
optionKey
,
const
std
::
string
&
value
);
void
unsetOption
(
const
std
::
string
&
optionKey
);
/**
* Set the Compiler to use.
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment