From d9a7e2279b7757594eb4b9b2154fbdcc2eb9a9e9 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Sun, 2 Jan 2005 15:17:54 +0000 Subject: [PATCH] Added setValue(string). --- src/headerField.cpp | 6 ++++++ vmime/headerField.hpp | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/src/headerField.cpp b/src/headerField.cpp index 39809d23..5a3e0a62 100644 --- a/src/headerField.cpp +++ b/src/headerField.cpp @@ -107,4 +107,10 @@ const std::vector headerField::getChildComponents() const } +void headerField::setValue(const string& value) +{ + parse(value); +} + + } // vmime diff --git a/vmime/headerField.hpp b/vmime/headerField.hpp index 42abd714..72c228a9 100644 --- a/vmime/headerField.hpp +++ b/vmime/headerField.hpp @@ -84,6 +84,12 @@ public: */ virtual void setValue(const component& value) = 0; + /** Set the value of this field given a character string. + * + * @param value value string to parse + */ + void setValue(const string& value); + using component::parse; using component::generate;