[opensaml2] 30/38: Bit of cleanup, doxygen comments.
Ferenc Wágner
wferi at moszumanska.debian.org
Tue Aug 30 20:53:58 UTC 2016
This is an automated email from the git hooks/post-receive script.
wferi pushed a commit to branch master
in repository opensaml2.
commit 661f415a39526c2bb698fbe1c4fdb477f5a2f781
Author: Scott Cantor <cantor.2 at osu.edu>
Date: 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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-shibboleth/opensaml2.git
More information about the Pkg-shibboleth-devel
mailing list