summaryrefslogtreecommitdiff
path: root/cli/header.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-11-22 16:58:56 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-11-22 16:58:56 +0200
commita376ccf37122f0768fce8e3c5a16561e01ee2351 (patch)
tree31878d0b10bf15989f2b08976a5de0fabebcac42 /cli/header.cxx
parent0e56fe29a9afeee00e02e722496678df89d37d50 (diff)
Implement option value modifiers generation
Diffstat (limited to 'cli/header.cxx')
-rw-r--r--cli/header.cxx7
1 files changed, 6 insertions, 1 deletions
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;