aboutsummaryrefslogtreecommitdiff
path: root/brep/module.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-08-14 13:03:08 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-08-23 13:53:50 +0200
commitbcd246076540a8353fa55fc0a5e19343c1a2dbc9 (patch)
tree9fe2c24ca33b3d670267a5cbc8c8c756589f359b /brep/module.cxx
parent24903813d11813f8ff9ac906d23b21e6c33b981d (diff)
Implement package search service mockup
Diffstat (limited to 'brep/module.cxx')
-rw-r--r--brep/module.cxx25
1 files changed, 13 insertions, 12 deletions
diff --git a/brep/module.cxx b/brep/module.cxx
index c52d13a..62c70c9 100644
--- a/brep/module.cxx
+++ b/brep/module.cxx
@@ -22,6 +22,7 @@
using namespace std;
using namespace placeholders; // For std::bind's _1, etc.
+using namespace cli;
namespace brep
{
@@ -98,22 +99,22 @@ namespace brep
{
// Read module implementation configuration.
//
- cli::argv_file_scanner s (0,
- argc,
- const_cast<char**> (argv.data ()),
- "conf");
+ argv_file_scanner s (0,
+ argc,
+ const_cast<char**> (argv.data ()),
+ "conf");
init (s);
}
// Read brep::module configuration.
//
- cli::argv_file_scanner s (0,
- argc,
- const_cast<char**> (argv.data ()),
- "conf");
+ argv_file_scanner s (0,
+ argc,
+ const_cast<char**> (argv.data ()),
+ "conf");
- options::module o (s, cli::unknown_mode::skip, cli::unknown_mode::skip);
+ options::module o (s, unknown_mode::skip, unknown_mode::skip);
verb_ = o.verb ();
}
catch (const server_error& e)
@@ -253,7 +254,7 @@ namespace brep
if (i_ != name_values_.end ())
return name_ ? i_->name.c_str () : i_->value.c_str ();
else
- throw cli::eos_reached ();
+ throw eos_reached ();
}
const char* module::param_scanner::
@@ -270,7 +271,7 @@ namespace brep
return r;
}
else
- throw cli::eos_reached ();
+ throw eos_reached ();
}
void module::param_scanner::
@@ -284,6 +285,6 @@ namespace brep
name_ = !name_;
}
else
- throw cli::eos_reached ();
+ throw eos_reached ();
}
}