GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: src/task/task-abstract.cpp Lines: 9 9 100.0 %
Date: 2023-03-13 12:09:37 Branches: 9 18 50.0 %

Line Branch Exec Source
1
/*
2
 * Copyright 2010,
3
 * François Bleibel,
4
 * Olivier Stasse,
5
 *
6
 * CNRS/AIST
7
 *
8
 */
9
10
/* --------------------------------------------------------------------- */
11
/* --- INCLUDE --------------------------------------------------------- */
12
/* --------------------------------------------------------------------- */
13
14
/* SOT */
15
#include <sot/core/pool.hh>
16
#include <sot/core/task-abstract.hh>
17
18
using namespace dynamicgraph::sot;
19
using namespace dynamicgraph;
20
21
/* --------------------------------------------------------------------- */
22
/* --- CLASS ----------------------------------------------------------- */
23
/* --------------------------------------------------------------------- */
24
25
8
TaskAbstract::TaskAbstract(const std::string &n)
26
    : Entity(n),
27
      memoryInternal(NULL),
28
16
      taskSOUT("sotTaskAbstract(" + n + ")::output(vector)::task"),
29


24
      jacobianSOUT("sotTaskAbstract(" + n + ")::output(matrix)::jacobian") {
30
8
  taskRegistration();
31

8
  signalRegistration(taskSOUT << jacobianSOUT);
32
8
}
33
34
8
void TaskAbstract::taskRegistration(void) {
35
8
  PoolStorage::getInstance()->registerTask(name, this);
36
8
}