/usr/include/cmpi/CmpiArgs.h is in libcmpicppimpl0-dev 2.0.3-0ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | /*
*
* $Id: CmpiArgs.h,v 1.3 2008/07/09 19:36:59 tyreld Exp $
*
* (C) Copyright IBM Corp. 2003, 2005, 2008
*
* THIS FILE IS PROVIDED UNDER THE TERMS OF THE ECLIPSE PUBLIC LICENSE
* ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE
* CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT.
*
* You can obtain a current copy of the Eclipse Public License from
* http://www.opensource.org/licenses/eclipse-1.0.txt
*
* Author: Adrian Schuur <schuur@de.ibm.com>
* Contributors:
*
* Description: CMPI Function Arguments Definitions
*
*/
#ifndef _CmpiArgs_h_
#define _CmpiArgs_h_
#include "cmpidt.h"
#include "cmpift.h"
#include "Linkage.h"
#include "CmpiBaseMI.h"
#include "CmpiObject.h"
#include "CmpiStatus.h"
#include "CmpiObjectPath.h"
#include "CmpiBroker.h"
#include "CmpiBaseMI.h"
/** This class wraps a CIMOM specific input and output arguments
passed to methodInvocation functions.
*/
class CMPI_PROVIDER_LINKAGE CmpiArgs : public CmpiObject {
friend class CmpiBroker;
friend class CmpiMethodMI;
protected:
/** Protected constructor used by MIDrivers to encapsulate CMPIArgs.
*/
CmpiArgs(CMPIArgs* enc);
/** Gets the encapsulated CMPIArgs.
*/
CMPIArgs *getEnc() const;
void *makeArgs(CMPIBroker* mb);
private:
public:
/** Constructor - Empty argument container.
*/
CmpiArgs();
/** getArgCount - Gets the number of arguments
defined for this argument container.
@return Number of arguments in this container.
*/
unsigned int getArgCount() const;
/** getArg - Gets the CmpiData object representing the value
associated with the argument name
@param name argument name.
@return CmpiData value object associated with the argument.
*/
CmpiData getArg(const char* name) const;
/** getArgument - Gets the CmpiData object defined
by the input index parameter.
@param index Index into the argument array.
@param name Optional output parameter returning the argument name.
@return CmpiData value object corresponding to the index.
*/
CmpiData getArg(const int index, CmpiString *name=NULL) const;
/** setArg - adds/replaces an argument value defined by the input
parameter to the container.
@param name Property name.
@param data Type and Value to be added.
*/
void setArg(const char* name, const CmpiData& data);
};
#endif
|