(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.14 and 1.22.18.1

version 1.14, 2002/08/14 22:32:23 version 1.22.18.1, 2006/02/10 16:09:35
Line 1 
Line 1 
 //%/////////////////////////////////////////////////////////////////////////////  //%2006////////////////////////////////////////////////////////////////////////
 // //
 // Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM,  // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
 // The Open Group, Tivoli Systems  // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
   // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
   // IBM Corp.; EMC Corporation, The Open Group.
   // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
   // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
   // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
   // EMC Corporation; VERITAS Software Corporation; The Open Group.
   // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
   // EMC Corporation; Symantec Corporation; The Open Group.
 // //
 // Permission is hereby granted, free of charge, to any person obtaining a copy // Permission is hereby granted, free of charge, to any person obtaining a copy
 // of this software and associated documentation files (the "Software"), to // of this software and associated documentation files (the "Software"), to
Line 21 
Line 29 
 // //
 //============================================================================== //==============================================================================
 // //
 // Author: Mike Brasher (mbrasher@bmc.com)  
 //  
 // Modified By: Carol Ann Krug Graves, Hewlett-Packard Company  
 //                (carolann_graves@hp.com)  
 //              Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com)  
 //  
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
 #ifndef Pegasus_Scope_h #ifndef Pegasus_Scope_h
Line 56 
Line 58 
 { {
 public: public:
  
     /**      /** Constructs a CIMScope object with no value set (default constructor).
         Constructs a CIMScope object with no value set (default constructor).          The values are null.
      */      */
     CIMScope ();     CIMScope ();
  
     /**      /** Constructs a CIMScope object from an existing CIMScope object (copy
         Constructs a CIMScope object from an existing CIMScope object (copy  
         constructor).         constructor).
           @param   scope   Specifies an instance of CIMScope object.
         @param   scope                 another CIMScope object  
      */      */
     CIMScope (const CIMScope & scope);     CIMScope (const CIMScope & scope);
  
     /**      /** Assigns the value of one CIMScope object to another (assignment
         Assigns the value of one CIMScope object to another (assignment  
         operator).         operator).
           @param   scope Specifies the name of a CIMScope object that contains
         @param   scope                 a CIMScope object          the values that you want to assign to another CIMScope object.
           @return  The CIMScope object with the values of the specified CIMScope
         @return  the CIMScope object          object. For example:
           <pre>
               CIMScope s0;
               CIMScope s1(s0);
           </pre>
           The values in CIMScope s0 are assigned to the CIMScope s1 instance.
      */      */
     CIMScope & operator= (const CIMScope & scope);     CIMScope & operator= (const CIMScope & scope);
  
     /**      /** Determines if every value in the specified CIMScope object is included
         Determines if every value in the specified CIMScope object is included  
         in this CIMScope object.         in this CIMScope object.
           @param   scope - Specifies a name of a CIMScope object.
         @param   scope                 a CIMScope object  
   
         @return  True if every value in the specified CIMScope object is         @return  True if every value in the specified CIMScope object is
                    included in the CIMScope object,                   included in the CIMScope object; otherwise, false.
                  False otherwise  
      */      */
     Boolean hasScope (const CIMScope & scope) const;     Boolean hasScope (const CIMScope & scope) const;
  
     /**      /** Adds the specified scope value to the CIMScope object.
         Adds the specified scope value to the CIMScope object.          @param   scope - Specifies a scope value. For example:
           <pre>
         @param   scope                 a scope value              CIMScope s0;
               s0.addScope (CIMScope::INDICATION);
         @exception InvalidScope  if the scope value is invalid              if(s0.hasScope (CIMScope::INDICATION))
                   ...                             ..
           </pre>
      */      */
     void addScope (const CIMScope & scope);     void addScope (const CIMScope & scope);
  
     /**      /** Compares two CIMScope objects.
         Compares two CIMScope objects.          @param  scope - Specifies a CIMScope object.
           @return True if the two CIMScope objects are equal; otherwise, false.
         @param   scope                 a CIMScope object          For example,
           <pre>
         @return True if the two CIMScope objects are equal,              CIMScope s0;
                 False otherwise              s0.addScope (CIMScope::CLASS + CIMScope::PARAMETER);
               if(s0.hasScope (CIMScope::CLASS))
                   ...     ..
       </pre>
      */      */
     Boolean equal (const CIMScope & scope) const;     Boolean equal (const CIMScope & scope) const;
  
     /**      /** Combines two CIMScope objects.
         Combines two CIMScope objects.          @param  scope - Specifies a CIMScope object to add.
   
         @param   scope                 a CIMScope object to add  
   
         @return A new CIMScope object that represents the combination of this         @return A new CIMScope object that represents the combination of this
                 scope with the specified scope.                  scope object with the specified scope object.
           <pre>
               CIMScope s0(CIMScope::CLASS);
               CIMScope s1(CIMScope::PARAMETER);
               CIMScope s3 = s0 + S1;
           </pre>
      */      */
     CIMScope operator+ (const CIMScope & scope) const;     CIMScope operator+ (const CIMScope & scope) const;
  
     /**      /** Returns a String representation of the CIMScope object.
         Returns a String representation of the CIMScope object.  
         This method is for diagnostic purposes.  The format of the output         This method is for diagnostic purposes.  The format of the output
         is subject to change.         is subject to change.
      */      */
     String toString () const;     String toString () const;
  
     /**      /** Indicates that the CIMScope object has no value (is uninitialized).
         Indicates that the CIMScope object has no value (is uninitialized)  
      */      */
     static const CIMScope NONE;     static const CIMScope NONE;
  
     /**      /** Indicates that the qualifier may be used with classes.
         Indicates that the qualifier may be used with classes  
      */      */
     static const CIMScope CLASS;     static const CIMScope CLASS;
  
     /**      /** Indicates that the qualifier may be used with associations.
         Indicates that the qualifier may be used with associations  
      */      */
     static const CIMScope ASSOCIATION;     static const CIMScope ASSOCIATION;
  
     /**      /** Indicates that the qualifier may be used with indications.
         Indicates that the qualifier may be used with indications  
      */      */
     static const CIMScope INDICATION;     static const CIMScope INDICATION;
  
     /**      /** Indicates that the qualifier may be used with properties.
         Indicates that the qualifier may be used with properties  
      */      */
     static const CIMScope PROPERTY;     static const CIMScope PROPERTY;
  
     /**      /** Indicates that the qualifier may be used with references.
         Indicates that the qualifier may be used with references  
      */      */
     static const CIMScope REFERENCE;     static const CIMScope REFERENCE;
  
     /**      /** Indicates that the qualifier may be used with methods.
         Indicates that the qualifier may be used with methods  
      */      */
     static const CIMScope METHOD;     static const CIMScope METHOD;
  
     /**      /** Indicates that the qualifier may be used with parameters.
         Indicates that the qualifier may be used with parameters  
      */      */
     static const CIMScope PARAMETER;     static const CIMScope PARAMETER;
  
     /**      /** Indicates that the qualifier may be used with any of the types
         Indicates that the qualifier may be used with any of the types  
         of objects (classes, associations, indications, properties, references,         of objects (classes, associations, indications, properties, references,
         methods, parameters)          methods, parameters).
      */      */
     static const CIMScope ANY;     static const CIMScope ANY;
  
 private: private:
  
     /**      //
         Constructs a CIMScope object with the specified value.  
   
         @param   scope                 a Uint32 scope value to initialize with  
      */  
     CIMScope (const Uint32 scope);     CIMScope (const Uint32 scope);
       // Private member for storing he CIMScope
     Uint32 cimScope;     Uint32 cimScope;
   
       friend class BinaryStreamer;
 }; };
  
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END


Legend:
Removed from v.1.14  
changed lines
  Added in v.1.22.18.1

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2