HorusCli: put internal functions in an anonymous namespace

This commit is contained in:
Tiago Gomes 2013-02-20 00:05:45 +00:00
parent e3439af0a0
commit 74a9eda09d

View File

@ -8,6 +8,7 @@
#include "BeliefProp.h" #include "BeliefProp.h"
#include "CountingBp.h" #include "CountingBp.h"
namespace {
int readHorusFlags (int, const char* []); int readHorusFlags (int, const char* []);
@ -21,6 +22,9 @@ void runSolver (const Horus::FactorGraph&, const Horus::VarIds&);
const std::string usage = "usage: ./hcli [solver=hve|bp|cbp] \ const std::string usage = "usage: ./hcli [solver=hve|bp|cbp] \
[<OPTION>=<VALUE>]... <FILE> [<VAR>|<VAR>=<EVIDENCE>]... " ; [<OPTION>=<VALUE>]... <FILE> [<VAR>|<VAR>=<EVIDENCE>]... " ;
}
int int
main (int argc, const char* argv[]) main (int argc, const char* argv[])
@ -58,6 +62,8 @@ main (int argc, const char* argv[])
namespace {
int int
readHorusFlags (int argc, const char* argv[]) readHorusFlags (int argc, const char* argv[])
{ {
@ -207,3 +213,5 @@ runSolver (
delete solver; delete solver;
} }
}