Commit b2ca8e51 authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

header for algorithm replace

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 2917
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent a7df982f
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: functions.cc,v 1.10 2009-10-26 10:03:43 tforb Exp $
* $Id: functions.cc,v 1.11 2009-11-20 07:47:05 tforb Exp $
* \author Thomas Forbriger
* \date 28/01/2008
*
......@@ -29,17 +29,19 @@
*
* REVISIONS and CHANGES
* - 28/01/2008 V1.0 Thomas Forbriger
* - 20/11/2009 V1.1 replace is declared in algorithm header
*
* ============================================================================
*/
#define STUPLO_FUNCTIONS_CC_VERSION \
"STUPLO_FUNCTIONS_CC V1.0 "
"STUPLO_FUNCTIONS_CC V1.1"
#define STUPLO_FUNCTIONS_CC_CVSID \
"$Id: functions.cc,v 1.10 2009-10-26 10:03:43 tforb Exp $"
"$Id: functions.cc,v 1.11 2009-11-20 07:47:05 tforb Exp $"
#include <iostream>
#include <string>
#include <sstream>
#include <algorithm>
#include <tfxx/error.h>
#include <tfxx/misc.h>
......@@ -120,7 +122,7 @@ namespace stuplo {
{
pgplot::Tcol col;
std::string vs=I->value(setrgbkey);
replace(vs.begin(), vs.end(), ',', ' ');
std::replace(vs.begin(), vs.end(), ',', ' ');
std::istringstream iss(vs);
iss >> col.r >> col.g >> col.b;
fp.graphls.setrgb(col);
......@@ -129,7 +131,7 @@ namespace stuplo {
{
pgplot::Tcol hls;
std::string vs=I->value(sethlskey);
replace(vs.begin(), vs.end(), ',', ' ');
std::replace(vs.begin(), vs.end(), ',', ' ');
std::istringstream iss(vs);
iss >> hls.h >> hls.l >> hls.s;
fp.graphls.sethls(hls);
......@@ -142,7 +144,7 @@ namespace stuplo {
{
fp.fixedordinatelimits=true;
std::string vs=I->value(scalerangekey);
replace(vs.begin(), vs.end(), ',', ' ');
std::replace(vs.begin(), vs.end(), ',', ' ');
std::istringstream iss(vs);
iss >> fp.ordinatelimits.min >> fp.ordinatelimits.max;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment