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

Diff for /pegasus/src/Pegasus/Common/CIMName.h between version 1.9 and 1.15

version 1.9, 2001/06/16 23:09:59 version 1.15, 2002/07/18 17:06:28
Line 1 
Line 1 
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
 // //
 // Copyright (c) 2000, 2001 The Open group, BMC Software, Tivoli Systems, IBM  // Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM,
   // The Open Group, Tivoli Systems
 // //
 // 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 31 
Line 32 
  
 #include <Pegasus/Common/Config.h> #include <Pegasus/Common/Config.h>
 #include <Pegasus/Common/String.h> #include <Pegasus/Common/String.h>
 #include <Pegasus/Common/Exception.h>  
  
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
  
 /** /**
     The name class defines static methods for handling CIM names.     The name class defines static methods for handling CIM names.
       There is no public constructor, and no instances can be created.
       <p>
     The names of classes, properties, qualifiers, and methods are all     The names of classes, properties, qualifiers, and methods are all
     CIM names. A CIM name must match the following regular     CIM names. A CIM name must match the following regular
     expression:     expression:
Line 55 
Line 57 
 { {
 public: public:
  
       //  ATTN: Define what is legal
     /** legal - Determine if the name string input is legal as     /** legal - Determine if the name string input is legal as
         defnined in the CIMName class definition         defnined in the CIMName class definition
         ATTN: Define what is legal  
         @param - String to test         @param - String to test
         @return Returns true if the given name is legal. Throws          @return Returns true if the given name is legal.
         NullPointer exception if name argument is null.  
     */     */
     static Boolean legal(const Char16* name);      static Boolean legal(const String& name) throw();
   
     /** legal - Determine if the name string input is legal as  
         defnined in the CIMName class definition  
         @param - String to test  
         @return Returns true if the given name is legal. Throws  
         NullPointer exception if name argument is null.  
     */  
     static Boolean legal(const String& name)  
     {  
         return legal(name.getData());  
     }  
  
     /** equal - Compares two names.     /** equal - Compares two names.
         @return Return true if the two names are equal. CIM names are         @return Return true if the two names are equal. CIM names are
         case insensitive and so it this method.         case insensitive and so it this method.
     */     */
     static Boolean equal(const String& name1, const String& name2)      static Boolean equal(const String& name1, const String& name2) throw();
     {  
         return String::equalNoCase(name1, name2);  
     }  
  
 private: private:
  


Legend:
Removed from v.1.9  
changed lines
  Added in v.1.15

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2