Don't import ogdf namespace
[TortoiseGit.git] / ext / OGDF / src / basic / ConstraintManager.cpp
blob50205bb6d2e65d275190209ce2e5273c9a01ee77
1 /*
2 * $Revision: 2549 $
4 * last checkin:
5 * $Author: gutwenger $
6 * $Date: 2012-07-04 23:09:19 +0200 (Mi, 04. Jul 2012) $
7 ***************************************************************/
9 /** \file
10 * \brief Implementation of class ConstraintManager that handles
11 * drawing constraints.
13 * \author PG478
15 * \par License:
16 * This file is part of the Open Graph Drawing Framework (OGDF).
18 * \par
19 * Copyright (C)<br>
20 * See README.txt in the root directory of the OGDF installation for details.
22 * \par
23 * This program is free software; you can redistribute it and/or
24 * modify it under the terms of the GNU General Public License
25 * Version 2 or 3 as published by the Free Software Foundation;
26 * see the file LICENSE.txt included in the packaging of this file
27 * for details.
29 * \par
30 * This program is distributed in the hope that it will be useful,
31 * but WITHOUT ANY WARRANTY; without even the implied warranty of
32 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33 * GNU General Public License for more details.
35 * \par
36 * You should have received a copy of the GNU General Public
37 * License along with this program; if not, write to the Free
38 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
39 * Boston, MA 02110-1301, USA.
41 * \see http://www.gnu.org/copyleft/gpl.html
42 ***************************************************************/
44 //#include <ogdf/String.h>
45 #include <ogdf/basic/Constraints.h>
46 //#include <constraints/AnchorConstraint.h>
47 //#include <constraints/AlignmentConstraint.h>
48 //#include <constraints/SequenceConstraint.h>
50 namespace ogdf {
52 Constraint *ConstraintManager::createConstraintByName(const Graph &G, String *name)
54 // if ((*name) == "Anchor") return new AnchorConstraint(G); else
55 // if ((*name) == "Alignment") return new AlignmentConstraint(G,0.0); else
56 // if ((*name) == "Sequence") return new SequenceConstraint(G,true); else
57 return NULL;
60 String ConstraintManager::getClassnameOfConstraint(Constraint *c) {
61 // if (c->getType()==AnchorConstraint::getStaticType()) return "Anchor";
62 // if (c->getType()==AlignmentConstraint::getStaticType()) return "Alignment";
63 // if (c->getType()==SequenceConstraint::getStaticType()) return "Sequence";
64 return "";