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

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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2