(file) Return to CIMScope.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/CIMScope.h between version 1.12 and 1.13

version 1.12, 2002/07/26 20:01:19 version 1.13, 2002/08/05 16:14:41
Line 23 
Line 23 
 // //
 // Author: Mike Brasher (mbrasher@bmc.com) // Author: Mike Brasher (mbrasher@bmc.com)
 // //
 // Modified By:  // Modified By: Carol Ann Krug Graves, Hewlett-Packard Company
   //                (carolann_graves@hp.com)
 // //
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
Line 31 
Line 32 
 #define Pegasus_Scope_h #define Pegasus_Scope_h
  
 #include <Pegasus/Common/Config.h> #include <Pegasus/Common/Config.h>
 #include <Pegasus/Common/Array.h>  
 #include <Pegasus/Common/String.h> #include <Pegasus/Common/String.h>
 #include <Pegasus/Common/Linkage.h> #include <Pegasus/Common/Linkage.h>
  
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
  
 /** /**
     The CIMQualifier Scopes are as follows:      The CIMScope class implements the concept of the scope of a CIM qualifier
     NONE, Class, ASSOCIATION,INDICATION,PROPERTY, REFERENCE, METHOD,      object.  The scope of a qualifier defines the set of types of CIM objects
     PARAMETER, ANY      with which the qualifier may be used.  The possible values are:
       NONE, CLASS, ASSOCIATION, INDICATION, PROPERTY, REFERENCE, METHOD,
       PARAMETER, ANY.
       The scope is a set of one or more of these possible values.
       The value "NONE" implies a CIMScope object that has not yet been assigned a
       value (uninitialized).  It is not a valid value for the scope of a
       qualifier object.
       The value "ANY" means that the qualifier may be used with any of the CIM
       object types, and is equivalent to listing each of the object types in the
       scope.
 */ */
 struct PEGASUS_COMMON_LINKAGE CIMScope  class PEGASUS_COMMON_LINKAGE CIMScope
 { {
   public:
   
       /**
           Constructs a CIMScope object with no value set (default constructor).
        */
       CIMScope ();
   
       /**
           Constructs a CIMScope object from an existing CIMScope object (copy
           constructor).
   
           @param   scope                 another CIMScope object
        */
       CIMScope (const CIMScope & scope);
   
       /**
           Constructs a CIMScope object with the specified value.
   
           @param   scope                 a Uint32 scope value
   
           @exception InvalidScope  if the scope value is invalid
        */
       CIMScope (const Uint32 scope);
   
       /**
           Assigns the value of one CIMScope object to another (assignment
           operator).
   
           @param   scope                 a CIMScope object
   
           @return  the CIMScope object
        */
       CIMScope & operator= (const CIMScope & scope);
   
       /**
           Determines if every value in the specified scope is included in the
           CIMScope object.
   
           @param   scope                 a scope value
   
           @return  True if every value in the scope is included in the CIMScope
                      object,
                    False otherwise
        */
       Boolean hasScope (const Uint32 scope) const;
   
       /**
           Determines if every value in the specified CIMScope object is included
           in this CIMScope object.
   
           @param   scope                 a CIMScope object
   
           @return  True if every value in the specified CIMScope object is
                      included in the CIMScope object,
                    False otherwise
        */
       Boolean hasScope (const CIMScope & scope) const;
   
       /**
           Adds the specified scope value to the CIMScope object.
   
           @param   scope                 a scope value
   
           @exception InvalidScope  if the scope value is invalid
        */
       void addScope (const Uint32 scope);
   
       /**
           Compares two CIMScope objects.
   
           @param   scope                 a CIMScope object
   
           @return True if the two CIMScope objects are equal,
                   False otherwise
        */
       Boolean equal (const CIMScope & scope) const;
   
       /**
           Returns a String representation of the CIMScope object.
           This method is for diagnostic purposes.  The format of the output
           is subject to change.
        */
       String toString () const;
   
       /**
           Indicates that the CIMScope object has no value (is uninitialized)
        */
     static const Uint32 NONE;     static const Uint32 NONE;
   
       /**
           Indicates that the qualifier may be used with classes
        */
     static const Uint32 CLASS;     static const Uint32 CLASS;
   
       /**
           Indicates that the qualifier may be used with associations
        */
     static const Uint32 ASSOCIATION;     static const Uint32 ASSOCIATION;
   
       /**
           Indicates that the qualifier may be used with indications
        */
     static const Uint32 INDICATION;     static const Uint32 INDICATION;
   
       /**
           Indicates that the qualifier may be used with properties
        */
     static const Uint32 PROPERTY;     static const Uint32 PROPERTY;
   
       /**
           Indicates that the qualifier may be used with references
        */
     static const Uint32 REFERENCE;     static const Uint32 REFERENCE;
   
       /**
           Indicates that the qualifier may be used with methods
        */
     static const Uint32 METHOD;     static const Uint32 METHOD;
   
       /**
           Indicates that the qualifier may be used with parameters
        */
     static const Uint32 PARAMETER;     static const Uint32 PARAMETER;
   
       /**
           Indicates that the qualifier may be used with any of the types
           of objects (classes, associations, indications, properties, references,
           methods, parameters)
        */
     static const Uint32 ANY;     static const Uint32 ANY;
 };  
  
 /** The behavior of this method is undefined and is subject to change */  private:
 PEGASUS_COMMON_LINKAGE String ScopeToString(Uint32 scope);  
       Uint32 cimScope;
   };
  
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END
  


Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2