Changes in src/Actions/toPythonString.cpp [33e801:992839]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/toPythonString.cpp
r33e801 r992839 41 41 #include "LinearAlgebra/Vector.hpp" 42 42 43 #include "Parameters/Specifics/KeyValuePair.hpp"44 45 43 template <> 46 44 const std::string toPythonString( const boost::filesystem::path & _value) … … 54 52 std::stringstream output; 55 53 output << _value.getAtomicNumber(); 56 return output.str();57 }58 59 template <>60 const std::string toPythonString( const KeyValuePair & _value)61 {62 std::stringstream output;63 const char semicolon(';');64 const size_t semicolon_pos = _value.find_last_of(semicolon, std::string::npos);65 const size_t final_equality_pos = _value.find('=', semicolon_pos);66 output << _value;67 if ((semicolon_pos == std::string::npos)68 || (final_equality_pos != std::string::npos))69 output << semicolon;70 54 return output.str(); 71 55 }
Note:
See TracChangeset
for help on using the changeset viewer.