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

 1 mike  1.3 //%/////////////////////////////////////////////////////////////////////////////
 2 bob   1.1 //
 3           // Copyright (c) 2000 The Open Group, BMC Software, Tivoli Systems, IBM
 4           //
 5           // Permission is hereby granted, free of charge, to any person obtaining a
 6           // copy of this software and associated documentation files (the "Software"),
 7           // to deal in the Software without restriction, including without limitation
 8           // the rights to use, copy, modify, merge, publish, distribute, sublicense,
 9           // and/or sell copies of the Software, and to permit persons to whom the
10           // Software is furnished to do so, subject to the following conditions:
11           //
12           // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13           // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14           // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
15           // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16           // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
17           // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
18           // DEALINGS IN THE SOFTWARE.
19           //
20 mike  1.3 //==============================================================================
21 bob   1.1 //
22           // Author: Bob Blair (bblair@bmc.com)
23           //
24 mike  1.3 // Modified By:
25 mike  1.2 //
26 mike  1.3 //%/////////////////////////////////////////////////////////////////////////////
27           
28           
29 bob   1.1 //
30 mike  1.2 // Header for a class to generate CIMValue objects from String values
31 bob   1.1 //
32           
33           #ifndef _VALUEFACTORY_H_
34           #define _VALUEFACTORY_H_
35           
36           #include <Pegasus/Common/String.h>
37           #include <Pegasus/Common/CIMValue.h>
38           
39 mike  1.4 PEGASUS_USING_PEGASUS;
40           PEGASUS_USING_STD;
41 bob   1.1 
42           // The valueFactory builds a CIMValue object given an indication of
43 mike  1.2 // whether this is a Array type, the CIM type to be coerced, and
44           // a String representation of the value.
45 bob   1.1 //
46           class PEGASUS_COMPILER_LINKAGE valueFactory  {
47            public:
48             static unsigned long Stoi(const String &s);
49             static CIMValue * createValue(CIMType::Tag type, int arrayDimension,
50           			     const String *rep);
51           };
52           
53           #endif

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2