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

 1 karl  1.2 //%2004////////////////////////////////////////////////////////////////////////
 2           //
 3           // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
 4           // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
 5           // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
 6           // IBM Corp.; EMC Corporation, The Open Group.
 7           // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
 8           // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
 9           //
10           // Permission is hereby granted, free of charge, to any person obtaining a copy
11           // of this software and associated documentation files (the "Software"), to
12           // deal in the Software without restriction, including without limitation the
13           // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
14           // sell copies of the Software, and to permit persons to whom the Software is
15           // furnished to do so, subject to the following conditions:
16           // 
17           // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
18           // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
19           // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
20           // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
21           // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
22 karl  1.2 // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
23           // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
24           // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25           //
26           //==============================================================================
27 david.dillard 1.1 //
28                   // Author: Tony Fiorentino (fiorentino_tony@emc.com)
29                   //
30                   // Modified By: Keith Petley (keithp@veritas.com)
31                   //
32                   //%/////////////////////////////////////////////////////////////////////////////
33                   
34                   #ifndef Pegasus_Attribute_h
35                   #define Pegasus_Attribute_h
36                   
37                   #include <Pegasus/Common/Config.h>
38                   #include <Pegasus/Common/String.h>
39                   #include <Pegasus/Common/CIMValue.h>
40                   #include <Pegasus/Common/Linkage.h>
41                   
42                   PEGASUS_NAMESPACE_BEGIN
43                   
44                   class PEGASUS_COMMON_LINKAGE Attribute
45                   {
46                   public:
47                   
48 david.dillard 1.1   /** Constructor for a Attribute object.
49                     */
50                     Attribute(const String & attrEntry = String::EMPTY);
51                   
52                     /** Destructor for a Attribute object.
53                     */
54                     ~Attribute();
55                   
56                     const String & getTag() const;
57                   
58                     /** Returns this attributes value.
59                          @return ref to  Array <String> that contains the attribute values.
60                     */
61                     const Array <String> & getValues() const;
62                   
63                     /** Sets this attributes value.
64                         @param   add "value" to end of attribute array
65                     */
66                     void addValue(const String & value);
67                   
68                   private:
69 david.dillard 1.1   String _tag;
70                     Array <String> _vals;
71                   };
72                   
73                   PEGASUS_COMMON_LINKAGE PEGASUS_STD(ostream)& operator<<(
74                       PEGASUS_STD(ostream)& os,
75                       const Attribute& attr);
76                   
77                   #define PEGASUS_ARRAY_T Attribute
78                   #include <Pegasus/Common/ArrayInter.h>
79                   #undef PEGASUS_ARRAY_T
80                   
81                   PEGASUS_NAMESPACE_END
82                   
83                   #endif /* Pegasus_Attribute_h */

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2