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

Diff for /pegasus/src/Pegasus/Common/CIMClass.h between version 1.52 and 1.53

version 1.52, 2002/07/26 20:01:19 version 1.53, 2002/07/30 16:14:53
Line 33 
Line 33 
 #define Pegasus_CIMClass_h #define Pegasus_CIMClass_h
  
 #include <Pegasus/Common/Config.h> #include <Pegasus/Common/Config.h>
   #include <Pegasus/Common/Linkage.h>
   #include <Pegasus/Common/CIMName.h>
 #include <Pegasus/Common/CIMObject.h> #include <Pegasus/Common/CIMObject.h>
 #include <Pegasus/Common/CIMMethod.h> #include <Pegasus/Common/CIMMethod.h>
 #include <Pegasus/Common/Linkage.h>  
  
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
  
Line 80 
Line 81 
     /** Constructor - Creates a Class from inputs of a classname and     /** Constructor - Creates a Class from inputs of a classname and
         SuperClassName         SuperClassName
         @param className CIMObjectPath representing name of the class being created         @param className CIMObjectPath representing name of the class being created
         @param superClassName String representing name of the SuperClass          @param superClassName CIMName representing name of the SuperClass
         @return Throws IllegalName if className argument illegal CIM identifier.         @return Throws IllegalName if className argument illegal CIM identifier.
         <pre>         <pre>
             CIMClass NewCass("MyClass", "YourClass");             CIMClass NewCass("MyClass", "YourClass");
Line 88 
Line 89 
  
     */     */
     CIMClass(     CIMClass(
         const CIMObjectPath& reference,          const CIMName& className,
         const String& superClassName = String::EMPTY);          const CIMName& superClassName = CIMName());
  
     /** Assignment operator.     /** Assignment operator.
     */     */
Line 119 
Line 120 
     /** getClassName Gets the name of the class     /** getClassName Gets the name of the class
         @return Returns string with the class name.         @return Returns string with the class name.
     */     */
     const String& getClassName() const;      const CIMName& getClassName() const;
  
     const CIMObjectPath& getPath() const;     const CIMObjectPath& getPath() const;
  
Line 130 
Line 131 
     void setPath (const CIMObjectPath & path);     void setPath (const CIMObjectPath & path);
  
     /** getSuperClassName - Gets the name of the Parent     /** getSuperClassName - Gets the name of the Parent
         @return String with parent class name.          @return CIMName with parent class name.
     */     */
     const String& getSuperClassName() const;      const CIMName& getSuperClassName() const;
  
     // ATTN define what's a legal class name     // ATTN define what's a legal class name
     /** setSuperClassName - Sets the name of the parent class from     /** setSuperClassName - Sets the name of the parent class from
         the input parameter. \REF{CLASSNAME}.         the input parameter. \REF{CLASSNAME}.
         @param String defining parent name.          @param CIMName defining parent name.
         @return Throws IllegalName if superClassName argument not legal CIM         @return Throws IllegalName if superClassName argument not legal CIM
         identifier         identifier
         @exception throws IllegalName if the name is not correct. See         @exception throws IllegalName if the name is not correct. See
         \URL[ClassNames]{DefinitionofTerms.html#CLASSNAME}         \URL[ClassNames]{DefinitionofTerms.html#CLASSNAME}
     */     */
     void setSuperClassName(const String& superClassName);      void setSuperClassName(const CIMName& superClassName);
  
     /** addQualifier - Adds the specified qualifier to the class     /** addQualifier - Adds the specified qualifier to the class
         and increments the qualifier count. It is illegal to add the same         and increments the qualifier count. It is illegal to add the same
Line 162 
Line 163 
         @return Returns index of the qualifier found or PEG_NOT_FOUND         @return Returns index of the qualifier found or PEG_NOT_FOUND
         if not found.         if not found.
     */     */
     Uint32 findQualifier(const String& name) const;      Uint32 findQualifier(const CIMName& name) const;
  
     /** isTrueQualifier - Determines if the qualifier defined by     /** isTrueQualifier - Determines if the qualifier defined by
         the input parameter exists for the class, is Boolean, and         the input parameter exists for the class, is Boolean, and
         has a value of true.         has a value of true.
         This function is useful to quickly determine the state of a         This function is useful to quickly determine the state of a
         qualifier.         qualifier.
         @param String containing the qualifier  name.          @param CIMName containing the qualifier  name.
         @return Boolean True if the qualifier exists,         @return Boolean True if the qualifier exists,
     */     */
     Boolean isTrueQualifier(const String& name) const;      Boolean isTrueQualifier(const CIMName& name) const;
  
 /**     getQualifier - Gets the CIMQualifier object defined /**     getQualifier - Gets the CIMQualifier object defined
         by the input parameter         by the input parameter
Line 211 
Line 212 
  
     /** findProperty - Finds the property object with the     /** findProperty - Finds the property object with the
         name defined by the input parameter in the class.         name defined by the input parameter in the class.
         @param String parameter with the property name.          @param CIMName parameter with the property name.
         @return position representing the property object found or         @return position representing the property object found or
         PEG_NOT_FOUND if the property is not found.         PEG_NOT_FOUND if the property is not found.
     */     */
     Uint32 findProperty(const String& name) const;      Uint32 findProperty(const CIMName& name) const;
  
     // ATTN: Should we not use something like handle for position???     // ATTN: Should we not use something like handle for position???
     // ATTN: what is error return?     // ATTN: what is error return?
Line 260 
Line 261 
  
     /** findMethod - Locate the method object defined by the     /** findMethod - Locate the method object defined by the
         name input         name input
         @param String representing the name of the method to be found          @param CIMName representing the name of the method to be found
         @return Position of the method object in the class to be used in         @return Position of the method object in the class to be used in
         subsequent getmethod, etc. operations         subsequent getmethod, etc. operations
     */     */
     Uint32 findMethod(const String& name) const;      Uint32 findMethod(const CIMName& name) const;
  
     /** getMethod - Gets the method object defined by the     /** getMethod - Gets the method object defined by the
         input parameter.         input parameter.
Line 296 
Line 297 
     Uint32 getMethodCount() const;     Uint32 getMethodCount() const;
  
     /** Get names of all keys of this class. */     /** Get names of all keys of this class. */
     void getKeyNames(Array<String>& keyNames) const;      void getKeyNames(Array<CIMName>& keyNames) const;
  
     Boolean hasKeys() const;     Boolean hasKeys() const;
  
Line 354 
Line 355 
     PEGASUS_EXPLICIT CIMConstClass(const CIMConstObject& x)     PEGASUS_EXPLICIT CIMConstClass(const CIMConstObject& x)
         throw(DynamicCastFailed);         throw(DynamicCastFailed);
  
     // Throws IllegalName if className argument not legal CIM identifier.  
     CIMConstClass(     CIMConstClass(
         const CIMObjectPath& reference,          const CIMName& className,
         const String& superClassName = String::EMPTY);          const CIMName& superClassName = CIMName());
  
     CIMConstClass& operator=(const CIMConstClass& x);     CIMConstClass& operator=(const CIMConstClass& x);
  
Line 369 
Line 369 
  
     Boolean isAbstract() const;     Boolean isAbstract() const;
  
     const String& getClassName() const;      const CIMName& getClassName() const;
  
     const CIMObjectPath& getPath() const;     const CIMObjectPath& getPath() const;
  
     const String& getSuperClassName() const;      const CIMName& getSuperClassName() const;
  
     Uint32 findQualifier(const String& name) const;      Uint32 findQualifier(const CIMName& name) const;
  
     CIMConstQualifier getQualifier(Uint32 pos) const;     CIMConstQualifier getQualifier(Uint32 pos) const;
  
     Boolean isTrueQualifier(const String& name) const;      Boolean isTrueQualifier(const CIMName& name) const;
  
     Uint32 getQualifierCount() const;     Uint32 getQualifierCount() const;
  
     Uint32 findProperty(const String& name) const;      Uint32 findProperty(const CIMName& name) const;
  
     CIMConstProperty getProperty(Uint32 pos) const;     CIMConstProperty getProperty(Uint32 pos) const;
  
     Uint32 getPropertyCount() const;     Uint32 getPropertyCount() const;
  
     Uint32 findMethod(const String& name) const;      Uint32 findMethod(const CIMName& name) const;
  
     CIMConstMethod getMethod(Uint32 pos) const;     CIMConstMethod getMethod(Uint32 pos) const;
  
     Uint32 getMethodCount() const;     Uint32 getMethodCount() const;
  
     void getKeyNames(Array<String>& keyNames) const;      void getKeyNames(Array<CIMName>& keyNames) const;
  
     Boolean hasKeys() const;     Boolean hasKeys() const;
  


Legend:
Removed from v.1.52  
changed lines
  Added in v.1.53

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2