From a376ccf37122f0768fce8e3c5a16561e01ee2351 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 22 Nov 2009 16:58:56 +0200 Subject: Implement option value modifiers generation --- cli/header.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'cli/header.cxx') diff --git a/cli/header.cxx b/cli/header.cxx index b06c2bf..2749b6d 100644 --- a/cli/header.cxx +++ b/cli/header.cxx @@ -22,6 +22,11 @@ namespace os << "const " << type << "&" << endl << name << " () const;" << endl; + + if (modifier) + os << "void" << endl + << name << " (const " << type << "&);" + << endl; } }; @@ -98,7 +103,7 @@ namespace // // - os << "// Option accessors." << endl + os << "// Option accessors" << (modifier ? " and modifiers." : ".") << endl << "//" << endl << endl; -- cgit v1.1