bpp-seq
2.2.0
SiteExceptions.cpp
Go to the documentation of this file.
1
// File: SiteExceptions.cpp
2
// Author: Julien Dutheil
3
// Created On: dim mar 7 2004
4
5
/*
6
Copyright or © or Copr. Bio++ Development Team, (November 17, 2004)
7
8
This software is a computer program whose purpose is to provide classes
9
for sequences analysis.
10
11
This software is governed by the CeCILL license under French law and
12
abiding by the rules of distribution of free software. You can use,
13
modify and/ or redistribute the software under the terms of the CeCILL
14
license as circulated by CEA, CNRS and INRIA at the following URL
15
"http://www.cecill.info".
16
17
As a counterpart to the access to the source code and rights to copy,
18
modify and redistribute granted by the license, users are provided only
19
with a limited warranty and the software's author, the holder of the
20
economic rights, and the successive licensors have only limited
21
liability.
22
23
In this respect, the user's attention is drawn to the risks associated
24
with loading, using, modifying and/or developing or reproducing the
25
software by the user in light of its specific status of free software,
26
that may mean that it is complicated to manipulate, and that also
27
therefore means that it is reserved for developers and experienced
28
professionals having in-depth computer knowledge. Users are therefore
29
encouraged to load and test the software's suitability as regards their
30
requirements in conditions enabling the security of their systems and/or
31
data to be ensured and, more generally, to use and operate it in the
32
same conditions as regards security.
33
34
The fact that you are presently reading this means that you have had
35
knowledge of the CeCILL license and that you accept its terms.
36
*/
37
38
#include "
SiteExceptions.h
"
39
#include "
Site.h
"
40
#include <Bpp/Text/TextTools.h>
41
42
using namespace
bpp
;
43
using namespace
std
;
44
45
/***************************************************************************/
46
47
SiteException::SiteException
(
const
std::string& text,
const
Site
* s) :
48
Exception(text + (s != 0 ?
"("
+ TextTools::toString(s->getPosition()) +
")"
: string(
""
))),
49
site_(s) {};
50
51
/***************************************************************************/
52
Site.h
bpp
This alphabet is used to deal NumericAlphabet.
Definition:
AbstractAlphabet.h:54
std
STL namespace.
SiteExceptions.h
bpp::SiteException::SiteException
SiteException(const std::string &text, const Site *s=0)
Build a new SiteException object.
Definition:
SiteExceptions.cpp:47
bpp::Site
The Site class.
Definition:
Site.h:61
Bpp
Seq
SiteExceptions.cpp
Generated on Sat May 23 2020 12:00:22 for bpp-seq by
1.8.14