[cpp-opensaml] branch master updated: Bit of cleanup, doxygen comments.

Scott Cantor cantor.2 at osu.edu
Mon Jun 20 10:33:59 EDT 2016


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to branch master
in repository cpp-opensaml.

View the commit online:
http://git.shibboleth.net/view/?p=cpp-opensaml.git;a=commit;h=661f415a39526c2bb698fbe1c4fdb477f5a2f781

The following commit(s) were added to refs/heads/master by this push:
       new  661f415   Bit of cleanup, doxygen comments.
661f415 is described below

commit 661f415a39526c2bb698fbe1c4fdb477f5a2f781
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Mon Jun 20 10:33:40 2016 -0400

    Bit of cleanup, doxygen comments.
---
 saml/saml2/metadata/MetadataFilter.h          | 24 +++++++++++++++++++++++-
 saml/saml2/metadata/impl/MetadataProvider.cpp | 12 +++++++++---
 2 files changed, 32 insertions(+), 4 deletions(-)

diff --git a/saml/saml2/metadata/MetadataFilter.h b/saml/saml2/metadata/MetadataFilter.h
index edbb047..a8f9316 100644
--- a/saml/saml2/metadata/MetadataFilter.h
+++ b/saml/saml2/metadata/MetadataFilter.h
@@ -44,13 +44,35 @@ namespace opensaml {
             virtual ~MetadataFilterContext();
         };
 
+        /**
+         * Environmental context for filtering of batch-loaded metadata.
+         */
         class SAML_API BatchLoadMetadataFilterContext : public virtual MetadataFilterContext
         {
             MAKE_NONCOPYABLE( BatchLoadMetadataFilterContext);
         public:
+            /**
+             * Constructor.
+             *
+             * @param isBackingFile initial setting for backing file flag
+             */
             BatchLoadMetadataFilterContext(bool isBackingFile);
+            virtual ~BatchLoadMetadataFilterContext();
+
+            /**
+             * Get whether the filtering is over a backing copy of the metadata.
+             *
+             * @return true iff the filtering operation is over a backing copy
+             */
             bool isBackingFile() const;
-            ~ BatchLoadMetadataFilterContext();
+
+            /**
+            * Set whether the filtering is over a backing copy of the metadata.
+            *
+            * @param flag flag to set
+            */
+            void setBackingFile(bool flag);
+
         private:
             bool m_isBackingFile;
         };
diff --git a/saml/saml2/metadata/impl/MetadataProvider.cpp b/saml/saml2/metadata/impl/MetadataProvider.cpp
index 3155a38..aae3909 100644
--- a/saml/saml2/metadata/impl/MetadataProvider.cpp
+++ b/saml/saml2/metadata/impl/MetadataProvider.cpp
@@ -269,7 +269,12 @@ MetadataFilterContext::~MetadataFilterContext()
 {
 }
 
-BatchLoadMetadataFilterContext::BatchLoadMetadataFilterContext(bool isBackingFile) : MetadataFilterContext(), m_isBackingFile(isBackingFile)
+BatchLoadMetadataFilterContext::BatchLoadMetadataFilterContext(bool isBackingFile)
+    : MetadataFilterContext(), m_isBackingFile(isBackingFile)
+{
+}
+
+BatchLoadMetadataFilterContext::~BatchLoadMetadataFilterContext()
 {
 }
 
@@ -278,6 +283,7 @@ bool BatchLoadMetadataFilterContext::isBackingFile() const
     return m_isBackingFile;
 }
 
-BatchLoadMetadataFilterContext::~BatchLoadMetadataFilterContext()
+void BatchLoadMetadataFilterContext::setBackingFile(bool flag)
 {
-}
+    m_isBackingFile = flag;
+}
\ No newline at end of file

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list