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

 1 tony  1.1 //%/////////////////////////////////////////////////////////////////////////////
 2           //
 3           // Copyright (c) 2003 BMC Software, Hewlett-Packard Company, IBM,
 4           // The Open Group, Tivoli Systems
 5           //
 6           // Permission is hereby granted, free of charge, to any person obtaining a copy
 7           // of this software and associated documentation files (the "Software"), to
 8           // deal in the Software without restriction, including without limitation the
 9           // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
10           // sell copies of the Software, and to permit persons to whom the Software is
11           // furnished to do so, subject to the following conditions:
12           // 
13           // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
14           // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
15           // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
16           // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
17           // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
18           // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
19           // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20           // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21           //
22 tony  1.1 //==============================================================================
23           //
24           // Author: Tony Fiorentino (fiorentino_tony@emc.com)
25           //
26           // Modified By:
27           //
28           //%/////////////////////////////////////////////////////////////////////////////
29           
30           #ifndef Pegasus_CIMServerDescription_h
31           #define Pegasus_CIMServerDescription_h
32           
33           #include <Pegasus/Common/Config.h>
34           #include <Pegasus/Common/String.h>
35           #include <Pegasus/Client/Attribute.h>
36           #include <Pegasus/Client/WBEMSLPTemplate.h>
37           #include <Pegasus/Client/Linkage.h>
38           
39           PEGASUS_NAMESPACE_BEGIN
40           
41           class PEGASUS_CLIENT_LINKAGE CIMServerDescription
42           {
43 tony  1.1 public:
44           
45             /** Constructor for a CIMServerDescription object.
46             */
47             CIMServerDescription();
48           
49             /** Constructor for a CIMServerDescription object.
50                 @param   url Url that identifies this connection description.
51             */
52             CIMServerDescription(const String & url);
53           
54             /** Destructor for a CIMServerDescription object.
55             */
56             ~CIMServerDescription();
57           
58             /** Returns the URL for this description.
59                 @return  String that contains the Url for this connection description.
60             */
61             String getUrl();
62           
63             /** Returns an attribute value as a string.
64 tony  1.1       @param   attributeName Attribute name of attribute.
65                 @param   defaultValue Default attribute value to return if empty or mal-formed.
66                 @return  String that contains an attribute value.
67             */
68             String getValue(const String & attributeName, const String & defaultValue);
69           
70             /** Returns an array of attribute.
71                 @return  Array that contains contains attributes for this connection description.
72             */
73             Array<Attribute> getAttributes();
74           
75             /** Sets an array of attributes for this description.
76                 param  Array that contains attributes for this connection description.
77             */
78             void setAttributes(const Array<Attribute> & attributes);
79           
80           private:
81             String _serviceLocationTcp;
82             String _host;
83             Uint32 _port;
84             Array<Attribute> _attributes;
85 tony  1.1 };
86           
87           #define PEGASUS_ARRAY_T CIMServerDescription
88           #include <Pegasus/Common/ArrayInter.h>
89           #undef PEGASUS_ARRAY_T
90           
91           PEGASUS_NAMESPACE_END
92           
93           #endif /* Pegasus_CIMServerDescription_h */

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2