Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
R3
legacy
bedtools2
Commits
9da60314
Commit
9da60314
authored
May 04, 2015
by
Neil Kindlon
Browse files
forgot src/utils/ToolBase directory
parent
ed59faae
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/utils/ToolBase/Makefile
0 → 100644
View file @
9da60314
OBJ_DIR
=
../../../obj/
BIN_DIR
=
../../../bin/
UTILITIES_DIR
=
../../utils/
# -------------------
# define our includes
# -------------------
INCLUDES
=
-I
$(UTILITIES_DIR)
/general/
\
-I
$(UTILITIES_DIR)
/fileType/
\
-I
$(UTILITIES_DIR)
/Contexts/
\
-I
$(UTILITIES_DIR)
/GenomeFile/
\
-I
$(UTILITIES_DIR)
/FileRecordTools/
\
-I
$(UTILITIES_DIR)
/FileRecordTools/FileReaders/
\
-I
$(UTILITIES_DIR)
/FileRecordTools/Records/
\
-I
$(UTILITIES_DIR)
/RecordOutputMgr/
\
-I
$(UTILITIES_DIR)
/KeyListOps/
\
-I
$(UTILITIES_DIR)
/BamTools/include
\
-I
$(UTILITIES_DIR)
/BamTools/src/
\
-I
$(UTILITIES_DIR)
/version/
# ----------------------------------
# define our source and object files
# ----------------------------------
SOURCES
=
ToolBase.h
OBJECTS
=
ToolBase.o
_EXT_OBJECTS
=
EXT_OBJECTS
=
$(
patsubst
%,
$(OBJ_DIR)
/%,
$(_EXT_OBJECTS)
)
BUILT_OBJECTS
=
$(
patsubst
%,
$(OBJ_DIR)
/%,
$(OBJECTS)
)
$(BUILT_OBJECTS)
:
$(SOURCES)
@
echo
" * compiling"
$
(
*
F
)
.cpp
@
$(CXX)
-c
-o
$@
$
(
*
F
)
.cpp
$(LDFLAGS)
$(CXXFLAGS)
$(INCLUDES)
$(EXT_OBJECTS)
:
@
$(MAKE)
--no-print-directory
-C
$(INCLUDES)
clean
:
@
echo
"Cleaning up."
@
rm
-f
$(OBJ_DIR)
/ToolBase.o
.PHONY
:
clean
\ No newline at end of file
src/utils/ToolBase/ToolBase.cpp
0 → 100644
View file @
9da60314
#include "ToolBase.h"
// All methods are currently purely abstract, so this file is only a placeholder for any future
// methods that may be added.
src/utils/ToolBase/ToolBase.h
0 → 100644
View file @
9da60314
/*
* ToolBase.h
*
* Created on: Mar 25, 2015
* Author: nek3d
*/
#ifndef TOOLBASE_H_
#define TOOLBASE_H_
using
namespace
std
;
#include "RecordKeyVector.h"
#include "RecordOutputMgr.h"
class
ContextBase
;
class
ToolBase
{
public:
ToolBase
(
ContextBase
*
context
)
{
_context
=
context
;
}
virtual
~
ToolBase
()
{}
virtual
bool
init
()
=
0
;
// after construction
virtual
bool
findNext
(
RecordKeyVector
&
hits
)
=
0
;
virtual
void
processHits
(
RecordOutputMgr
*
outputMgr
,
RecordKeyVector
&
hits
)
=
0
;
virtual
void
cleanupHits
(
RecordKeyVector
&
hits
)
=
0
;
//do any last things needed to wrap up.
virtual
bool
finalizeCalculations
()
=
0
;
virtual
void
giveFinalReport
(
RecordOutputMgr
*
outputMgr
)
=
0
;
protected:
ContextBase
*
_context
;
};
#endif
/* TOOLBASE_H_ */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment