summaryrefslogtreecommitdiff
path: root/libs/cassowary/ClFDConnectorVariable.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/cassowary/ClFDConnectorVariable.cc')
-rw-r--r--libs/cassowary/ClFDConnectorVariable.cc29
1 files changed, 29 insertions, 0 deletions
diff --git a/libs/cassowary/ClFDConnectorVariable.cc b/libs/cassowary/ClFDConnectorVariable.cc
new file mode 100644
index 0000000000..e6618eb9d4
--- /dev/null
+++ b/libs/cassowary/ClFDConnectorVariable.cc
@@ -0,0 +1,29 @@
+// $Id$
+//
+// Cassowary Incremental Constraint Solver
+// Original Smalltalk Implementation by Alan Borning
+// This C++ Implementation by Greg J. Badros, <gjb@cs.washington.edu>
+// http://www.cs.washington.edu/homes/gjb
+// (C) 1998, 1999 Greg J. Badros and Alan Borning
+// See ../LICENSE for legal details regarding this software
+//
+// ClFDConnectorVariable.cc
+
+#include <cassowary/ClFDConnectorVariable.h>
+#include <cassowary/ClSolver.h> // for list<FDNumber> printing
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#define CONFIG_H_INCLUDED
+#endif
+
+// Use < > for ClFDConnector-s, instead of [ ]
+#ifndef CL_NO_IO
+ostream &ClFDConnectorVariable::PrintOn(ostream &xo) const
+{
+ xo << "<" << Name() << "=" << Value()
+ << "{" << _clvFloat << "}"
+ << ":" << *PlfdnDomain() << ">";
+ return xo;
+}
+#endif