* eoLogger: last issues fixed
This commit is contained in:
parent
e8f6c5f21b
commit
25f675bac2
4 changed files with 28 additions and 37 deletions
|
|
@ -199,8 +199,7 @@
|
||||||
#include <eoLinearDecreasingWeightUp.h>
|
#include <eoLinearDecreasingWeightUp.h>
|
||||||
#include <eoGaussRealWeightUp.h>
|
#include <eoGaussRealWeightUp.h>
|
||||||
|
|
||||||
#include <utils/eoParserLogger.h>
|
#include <utils/eoLogger.h>
|
||||||
|
|
||||||
#include <utils/eoParallel.h>
|
#include <utils/eoParallel.h>
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -32,14 +32,11 @@ Caner Candan <caner.candan@thalesgroup.com>
|
||||||
|
|
||||||
Here's an example explaning how to use eoLogger:
|
Here's an example explaning how to use eoLogger:
|
||||||
\code
|
\code
|
||||||
#include <iostream>
|
#include <eo>
|
||||||
#include <utils/eoLogger.h>
|
|
||||||
#include <utils/eoParser.h>
|
|
||||||
|
|
||||||
int main(int ac, char** av)
|
int main(int ac, char** av)
|
||||||
{
|
{
|
||||||
// We are declaring first an overload of eoParser class using Logger
|
// We are declaring the usual eoParser class
|
||||||
// component.
|
|
||||||
eoParser parser(ac, av);
|
eoParser parser(ac, av);
|
||||||
|
|
||||||
// This call is important to allow -v parameter to change user level.
|
// This call is important to allow -v parameter to change user level.
|
||||||
|
|
@ -216,7 +213,7 @@ public:
|
||||||
friend eoLogger& operator<<(eoLogger&, std::ostream&);
|
friend eoLogger& operator<<(eoLogger&, std::ostream&);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
friend void make_verbose(eoParser&);
|
friend void make_verbose(eoParser&);
|
||||||
|
|
||||||
eoValueParam<std::string> _verbose;
|
eoValueParam<std::string> _verbose;
|
||||||
eoValueParam<bool> _printVerboseLevels;
|
eoValueParam<bool> _printVerboseLevels;
|
||||||
|
|
@ -257,6 +254,8 @@ private:
|
||||||
/** @example t-eoLogger.cpp
|
/** @example t-eoLogger.cpp
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
void make_verbose(eoParser&);
|
||||||
|
|
||||||
namespace eo
|
namespace eo
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -2,17 +2,13 @@
|
||||||
// t-eoLogger.cpp
|
// t-eoLogger.cpp
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
#include <iostream>
|
|
||||||
#include <utils/eoLogger.h>
|
|
||||||
#include <utils/eoParserLogger.h>
|
|
||||||
|
|
||||||
#include <eo>
|
#include <eo>
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
int main(int ac, char** av)
|
int main(int ac, char** av)
|
||||||
{
|
{
|
||||||
eoParserLogger parser(ac, av);
|
eoParser parser(ac, av);
|
||||||
|
|
||||||
if (parser.userNeedsHelp())
|
if (parser.userNeedsHelp())
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -32,9 +32,6 @@ Caner Candan <caner.candan@thalesgroup.com>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <climits>
|
#include <climits>
|
||||||
|
|
||||||
#include <utils/eoLogger.h>
|
|
||||||
#include <utils/eoParserLogger.h>
|
|
||||||
|
|
||||||
#include <eo>
|
#include <eo>
|
||||||
#include <es/make_real.h>
|
#include <es/make_real.h>
|
||||||
|
|
||||||
|
|
@ -114,7 +111,7 @@ void measure( size_t p,
|
||||||
|
|
||||||
int main(int ac, char** av)
|
int main(int ac, char** av)
|
||||||
{
|
{
|
||||||
eoParserLogger parser(ac, av);
|
eoParser parser(ac, av);
|
||||||
|
|
||||||
unsigned int popMin = parser.getORcreateParam((unsigned int)1, "popMin", "Population Min", 'p', "Evolution Engine").value();
|
unsigned int popMin = parser.getORcreateParam((unsigned int)1, "popMin", "Population Min", 'p', "Evolution Engine").value();
|
||||||
unsigned int popStep = parser.getORcreateParam((unsigned int)1, "popStep", "Population Step", 0, "Evolution Engine").value();
|
unsigned int popStep = parser.getORcreateParam((unsigned int)1, "popStep", "Population Step", 0, "Evolution Engine").value();
|
||||||
|
|
|
||||||
Reference in a new issue