remove unused test binaries, some code formating

This commit is contained in:
Johann Dreo 2010-11-07 23:09:35 +01:00
commit c4c27907ed
6 changed files with 11 additions and 38 deletions

View file

@ -1,23 +1,15 @@
//----------------------------------------------------------------------------- #include <eo>
// t-eo.cpp
//-----------------------------------------------------------------------------
#include <eo> // EO
//-----------------------------------------------------------------------------
typedef EO<float> Chrom; typedef EO<float> Chrom;
//-----------------------------------------------------------------------------
int main() int main()
{ {
Chrom chrom1, chrom2; Chrom chrom1, chrom2;
// EO objects can be printed with stream operators
std::cout << "chrom1 = " << chrom1 << std::endl std::cout << "chrom1 = " << chrom1 << std::endl
<< "chrom2 = " << chrom2 << std::endl; << "chrom2 = " << chrom2 << std::endl;
return 0; return 0;
} }
//-----------------------------------------------------------------------------

View file

@ -1,4 +1,3 @@
//-----------------------------------------------------------------------------
// to avoid long name warnings // to avoid long name warnings
#ifdef _MSC_VER #ifdef _MSC_VER
@ -7,19 +6,12 @@
#include <stdexcept> // runtime_error #include <stdexcept> // runtime_error
//-----------------------------------------------------------------------------
// tt.cpp:
//
//-----------------------------------------------------------------------------
// general // general
#include <utils/eoRNG.h> // Random number generators #include <utils/eoRNG.h> // Random number generators
#include <ga.h> #include <ga.h>
#include <utils/eoParser.h> #include <utils/eoParser.h>
#include <utils/eoState.h> #include <utils/eoState.h>
#include <eoGenContinue.h> #include <eoGenContinue.h>
//-----------------------------------------------------------------------------
// include package checkpointing // include package checkpointing
#include <utils/checkpointing> #include <utils/checkpointing>
@ -36,7 +28,6 @@ public :
eoDummyPop(int s = 2) { resize(s); } eoDummyPop(int s = 2) { resize(s); }
}; };
//-----------------------------------------------------------------------------
int the_main(int argc, char **argv) int the_main(int argc, char **argv)
{ // ok, we have a command line parser and a state { // ok, we have a command line parser and a state

View file

@ -1,7 +1,3 @@
//-----------------------------------------------------------------------------
// t-eoEasyEA.cpp
//-----------------------------------------------------------------------------
#ifndef __GNUG__ #ifndef __GNUG__
// to avoid long name warnings // to avoid long name warnings
#pragma warning(disable:4786) #pragma warning(disable:4786)
@ -11,12 +7,8 @@
#include "binary_value.h" #include "binary_value.h"
//-----------------------------------------------------------------------------
typedef eoBin<float> Chrom; typedef eoBin<float> Chrom;
//-----------------------------------------------------------------------------
main() main()
{ {
const unsigned POP_SIZE = 8, CHROM_SIZE = 16; const unsigned POP_SIZE = 8, CHROM_SIZE = 16;
@ -81,4 +73,3 @@ main()
return 0; return 0;
} }
//-----------------------------------------------------------------------------

View file

@ -101,4 +101,3 @@ int main()
return 0; return 0;
} }
//-----------------------------------------------------------------------------

View file

@ -27,26 +27,26 @@ int main(int ac, char** av)
eo::log << eo::warnings; eo::log << eo::warnings;
eo::log << "We are written on the default defined standard output" << std::endl; eo::log << "We are writing on the default output stream" << std::endl;
eo::log << eo::file("test.txt") << "In FILE" << std::endl; eo::log << eo::file("test.txt") << "In FILE" << std::endl;
eo::log << std::cout << "In COUT" << std::endl; eo::log << std::cout << "on COUT" << std::endl;
eo::log << eo::setlevel("errors"); eo::log << eo::setlevel("errors");
eo::log << eo::setlevel(eo::errors); eo::log << eo::setlevel(eo::errors);
eo::log << eo::quiet << "1) Must be in quiet mode" << std::endl; eo::log << eo::quiet << "1) in quiet mode" << std::endl;
eo::log << eo::setlevel(eo::warnings) << eo::warnings << "2) Must be in warnings mode" << std::endl; eo::log << eo::setlevel(eo::warnings) << eo::warnings << "2) in warnings mode" << std::endl;
eo::log << eo::setlevel(eo::logging); eo::log << eo::setlevel(eo::logging);
eo::log << eo::errors; eo::log << eo::errors;
eo::log << "3) Must be in errors mode"; eo::log << "3) in errors mode";
eo::log << std::endl; eo::log << std::endl;
eo::log << eo::debug << 4 << ')' eo::log << eo::debug << 4 << ')'
<< " Must be in debug mode\n"; << "4) in debug mode\n";
return 0; return 0;
} }