summaryrefslogtreecommitdiff
path: root/TAO/tao/PortableServer/Default_Policy_Validator.h
diff options
context:
space:
mode:
authorfhunleth <fhunleth@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-06-12 18:58:44 +0000
committerfhunleth <fhunleth@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-06-12 18:58:44 +0000
commit849ed197c824efc0c79eace4ebb1b58233ad5307 (patch)
tree468291519f5de84e2d73520262cff279db26aa67 /TAO/tao/PortableServer/Default_Policy_Validator.h
parent5070be68f08f53deaee31754020ab36c0391af79 (diff)
downloadATCD-849ed197c824efc0c79eace4ebb1b58233ad5307.tar.gz
Tue Jun 12 13:30:02 2001 Frank Hunleth <fhunleth@cs.wustl.edu>, Angelo Corsaro <corsaro@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/PortableServer/Default_Policy_Validator.h')
-rw-r--r--TAO/tao/PortableServer/Default_Policy_Validator.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/TAO/tao/PortableServer/Default_Policy_Validator.h b/TAO/tao/PortableServer/Default_Policy_Validator.h
new file mode 100644
index 00000000000..ef1a260b7ce
--- /dev/null
+++ b/TAO/tao/PortableServer/Default_Policy_Validator.h
@@ -0,0 +1,54 @@
+//=============================================================================
+/**
+ * @file Default_Policy_Validator.h
+ *
+ * $Id$
+ *
+ * This file contains the declaration for the default POA policy validator.
+ *
+ * @author Angelo Corsaro <corsaro@cs.wustl.edu>
+ * @author Frank Hunleth <fhuntleth@cs.wustl.edu>
+ */
+//=============================================================================
+
+#ifndef TAO_DEFAULT_POLICY_VALIDATOR_H_
+#define TAO_DEFAULT_POLICY_VALIDATOR_H_
+
+#include "ace/pre.h"
+
+#include "Policy_Validator.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+class TAO_PortableServer_Export TAO_POA_Default_Policy_Validator
+ : public TAO_POA_Policy_Validator
+{
+public:
+ /// Destructor.
+ ~TAO_POA_Default_Policy_Validator (void);
+
+protected:
+ /**
+ * Validate that the policies in the specified set
+ * are consistent and legal. Throw an appropriate exception
+ * if that is not the case.
+ */
+ virtual void validate_impl (TAO_Policy_Set &policies,
+ CORBA::Environment &ACE_TRY_ENV);
+
+ /**
+ * Return whether the specified policy type is legal for the
+ * current configuration. This is needed since the user can
+ * potentially specify policies that are unknown to an
+ * validate () routine, and these need to be caught.
+ */
+ virtual CORBA::Boolean legal_policy_impl (CORBA::PolicyType type);
+
+};
+
+#include "ace/post.h"
+#endif /* TAO_DEFAULT_POLICY_VALIDATOR_H_ */
+
+