+ lib utils
This commit is contained in:
parent
5cbb27aee3
commit
5b3f42d277
15 changed files with 33 additions and 14 deletions
|
|
@ -10,3 +10,12 @@ FILE(GLOB SOURCES *.cpp)
|
||||||
SET(SAMPLE_SRCS ${SOURCES} PARENT_SCOPE)
|
SET(SAMPLE_SRCS ${SOURCES} PARENT_SCOPE)
|
||||||
|
|
||||||
######################################################################################
|
######################################################################################
|
||||||
|
|
||||||
|
|
||||||
|
######################################################################################
|
||||||
|
### 2) Where must cmake go now ?
|
||||||
|
######################################################################################
|
||||||
|
|
||||||
|
ADD_SUBDIRECTORY(utils)
|
||||||
|
|
||||||
|
######################################################################################
|
||||||
|
|
|
||||||
1
src/TODO
1
src/TODO
|
|
@ -1,2 +1 @@
|
||||||
* deplacer les ecritures pour gnuplot dans des classes type eoContinue (eoMonitor)
|
|
||||||
* integrer ACP
|
* integrer ACP
|
||||||
|
|
|
||||||
14
src/do
14
src/do
|
|
@ -41,14 +41,14 @@
|
||||||
#include "doBounderRng.h"
|
#include "doBounderRng.h"
|
||||||
|
|
||||||
#include "doContinue.h"
|
#include "doContinue.h"
|
||||||
#include "doCheckPoint.h"
|
#include "utils/doCheckPoint.h"
|
||||||
|
|
||||||
#include "doStat.h"
|
#include "utils/doStat.h"
|
||||||
#include "doStatUniform.h"
|
#include "utils/doStatUniform.h"
|
||||||
#include "doStatNormalMono.h"
|
#include "utils/doStatNormalMono.h"
|
||||||
#include "doStatNormalMulti.h"
|
#include "utils/doStatNormalMulti.h"
|
||||||
|
|
||||||
#include "doFileSnapshot.h"
|
#include "utils/doFileSnapshot.h"
|
||||||
#include "doPopStat.h"
|
#include "utils/doPopStat.h"
|
||||||
|
|
||||||
#endif // !_do_
|
#endif // !_do_
|
||||||
|
|
|
||||||
|
|
@ -9,10 +9,9 @@
|
||||||
#define _doContinue_h
|
#define _doContinue_h
|
||||||
|
|
||||||
#include <eoFunctor.h>
|
#include <eoFunctor.h>
|
||||||
#include <eoPop.h>
|
|
||||||
#include <eoPersistent.h>
|
#include <eoPersistent.h>
|
||||||
|
|
||||||
//! eoContinue< EOT > classe fitted to Distribution Object library
|
//! doContinue< EOT > classe fitted to Distribution Object library
|
||||||
|
|
||||||
template < typename D >
|
template < typename D >
|
||||||
class doContinue : public eoUF< const D&, bool >, public eoPersistent
|
class doContinue : public eoUF< const D&, bool >, public eoPersistent
|
||||||
|
|
@ -36,7 +35,7 @@ class doDummyContinue : public doContinue< D >
|
||||||
{
|
{
|
||||||
bool operator()(const D&){ return true; }
|
bool operator()(const D&){ return true; }
|
||||||
|
|
||||||
virtual std::string className() const { return "doNoContinue"; }
|
virtual std::string className() const { return "doDummyContinue"; }
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // !_doContinue_h
|
#endif // !_doContinue_h
|
||||||
|
|
|
||||||
|
|
@ -17,8 +17,6 @@
|
||||||
#include "doEstimator.h"
|
#include "doEstimator.h"
|
||||||
#include "doModifierMass.h"
|
#include "doModifierMass.h"
|
||||||
#include "doSampler.h"
|
#include "doSampler.h"
|
||||||
#include "doHyperVolume.h"
|
|
||||||
#include "doStat.h"
|
|
||||||
#include "doContinue.h"
|
#include "doContinue.h"
|
||||||
|
|
||||||
template < typename D >
|
template < typename D >
|
||||||
|
|
|
||||||
14
src/utils/CMakeLists.txt
Normal file
14
src/utils/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
######################################################################################
|
||||||
|
### 1) Set all needed source files for the project
|
||||||
|
######################################################################################
|
||||||
|
|
||||||
|
FILE(GLOB SOURCES *.cpp)
|
||||||
|
|
||||||
|
SET(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib)
|
||||||
|
ADD_LIBRARY(doutils ${SOURCES})
|
||||||
|
INSTALL(TARGETS doutils ARCHIVE DESTINATION lib COMPONENT libraries)
|
||||||
|
|
||||||
|
FILE(GLOB HDRS *.h utils)
|
||||||
|
INSTALL(FILES ${HDRS} DESTINATION include/do/utils COMPONENT headers)
|
||||||
|
|
||||||
|
######################################################################################
|
||||||
|
|
@ -30,7 +30,7 @@
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
|
||||||
#include <doFileSnapshot.h>
|
#include <utils/doFileSnapshot.h>
|
||||||
#include <utils/compatibility.h>
|
#include <utils/compatibility.h>
|
||||||
#include <utils/eoParam.h>
|
#include <utils/eoParam.h>
|
||||||
|
|
||||||
Reference in a new issue