[asterisk-scf-commits] asterisk-scf/integration/ice.git branch "slice-plugins" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Fri Feb 18 17:43:52 CST 2011


branch "slice-plugins" has been updated
       via  dfddac45a0311dc85149c4004f4d54194dc2ad75 (commit)
      from  03be97bf53202c6bedd0115849e58d2c1793da64 (commit)

Summary of changes:
 cpp/include/Slice/Parser.h |    2 ++
 cpp/src/Slice/Parser.cpp   |   13 +++++++++++++
 2 files changed, 15 insertions(+), 0 deletions(-)


- Log -----------------------------------------------------------------
commit dfddac45a0311dc85149c4004f4d54194dc2ad75
Author: Kevin P. Fleming <kpfleming at digium.com>
Date:   Fri Feb 18 17:43:21 2011 -0600

    Allow plugins to set/modify default values on class/struct/exception
    data members.

diff --git a/cpp/include/Slice/Parser.h b/cpp/include/Slice/Parser.h
index 86ee25b..fdd427e 100644
--- a/cpp/include/Slice/Parser.h
+++ b/cpp/include/Slice/Parser.h
@@ -977,6 +977,8 @@ public:
     bool hasDefaultValue() const;
     std::string defaultValue() const;
     std::string defaultLiteral() const;
+    void setDefaultValue(const std::string&);
+    void setDefaultLiteral(const std::string&);
     virtual ContainedType containedType() const;
     virtual bool uses(const ContainedPtr&) const;
     virtual std::string kindOf() const;
diff --git a/cpp/src/Slice/Parser.cpp b/cpp/src/Slice/Parser.cpp
index 8eac593..6b10e04 100644
--- a/cpp/src/Slice/Parser.cpp
+++ b/cpp/src/Slice/Parser.cpp
@@ -5281,6 +5281,19 @@ Slice::DataMember::defaultLiteral() const
     return _defaultLiteral;
 }
 
+void
+Slice::DataMember::setDefaultValue(const string& value)
+{
+    _defaultValue = value;
+    _hasDefaultValue = true;
+}
+
+void
+Slice::DataMember::setDefaultLiteral(const string& literal)
+{
+    _defaultLiteral = literal;
+}
+
 Contained::ContainedType
 Slice::DataMember::containedType() const
 {

-----------------------------------------------------------------------


-- 
asterisk-scf/integration/ice.git



More information about the asterisk-scf-commits mailing list