aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/utils/pdb_descr.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/pdb_descr.hpp')
-rw-r--r--utils/pdb_descr.hpp47
1 files changed, 22 insertions, 25 deletions
diff --git a/utils/pdb_descr.hpp b/utils/pdb_descr.hpp
index 58261a0..cde815a 100644
--- a/utils/pdb_descr.hpp
+++ b/utils/pdb_descr.hpp
@@ -15,37 +15,34 @@
#include <string>
#include <vector>
-namespace
+struct PDB
{
- struct PDB
- {
- pdb::Address online_base;
- std::string path;
+ pdb::Address online_base;
+ std::string path;
- static PDB parse(std::string src)
- {
- static constexpr auto sep = ',';
+ static PDB parse(std::string src)
+ {
+ static constexpr auto sep = ',';
- const auto sep_pos = src.find(sep);
- if (sep_pos == std::string::npos)
- boost::throw_exception(boost::program_options::invalid_option_value{src});
+ const auto sep_pos = src.find(sep);
+ if (sep_pos == std::string::npos)
+ boost::throw_exception(boost::program_options::invalid_option_value{src});
- pdb::Address online_base;
- if (!pdb::parse_address(online_base, src.substr(0, sep_pos)))
- boost::throw_exception(boost::program_options::invalid_option_value{src});
+ pdb::Address online_base;
+ if (!pdb::parse_address(online_base, src.substr(0, sep_pos)))
+ boost::throw_exception(boost::program_options::invalid_option_value{src});
- return {online_base, src.substr(sep_pos + 1)};
- }
+ return {online_base, src.substr(sep_pos + 1)};
+ }
- static pdb::Address parse_address(const std::string& src)
- {
- pdb::Address dest;
- if (!pdb::parse_address(dest, src))
- boost::throw_exception(boost::program_options::invalid_option_value{src});
- return dest;
- }
- };
-}
+ static pdb::Address parse_address(const std::string& src)
+ {
+ pdb::Address dest;
+ if (!pdb::parse_address(dest, src))
+ boost::throw_exception(boost::program_options::invalid_option_value{src});
+ return dest;
+ }
+};
namespace boost
{