Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/toCLIString.cpp

    r27d0bc r33e801  
    4040#include "LinearAlgebra/RealSpaceMatrix.hpp"
    4141#include "LinearAlgebra/Vector.hpp"
     42#include "Parameters/Specifics/KeyValuePair.hpp"
     43
     44#include "Actions/toPythonString.hpp"
    4245
    4346template <>
     
    6568    << _value.at(2,0) << ","
    6669    << _value.at(2,1) << ","
    67     << _value.at(2,2) << "\"";
     70    << _value.at(2,2)
     71    << "\"";
    6872  return output.str();
    6973}
     
    7377{
    7478  std::stringstream output;
    75   output << "\"" << _value[0] << "," << _value[1] << "," << _value[2] << "\"";
     79  output << "\"" << toPythonString(_value) << "\"";
    7680  return output.str();
    7781}
     
    8488  return output.str();
    8589}
     90
     91template <>
     92const std::string toCLIString( const KeyValuePair& _value)
     93{
     94  std::stringstream output;
     95  output << "\"" << toPythonString(_value) << "\"";
     96  return output.str();
     97}
Note: See TracChangeset for help on using the changeset viewer.