Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ippSetPropCommand.h

Go to the documentation of this file.
00001 // 
00002 // DISCLAIMER: 
00003 //  This software was produced by the National Institute of Standards 
00004 //  and Technology (NIST), an agency of the U.S. government, and by statute is 
00005 //  not subject to copyright in the United States.  Recipients of this 
00006 //  software assume all responsibility associated with its operation,
00007 //  modification,maintenance, and subsequent redistribution. 
00008 //
00009 //  See NIST Administration Manual 4.09.07 b and Appendix I. 
00010 //
00011 #pragma once 
00012 
00013 #include "ippdme/ippOtherKeyType.h"
00014 #include "ippdme/Command/ippCommand.h"
00015 #include "ippdme/ippProp.h"
00016 
00017 /* ippSetPropCommand class ************************************************
00018 
00019 This is along the same lines as GetPropCommand, except that this
00020 contains values.
00021 
00022 The getValue function returns the value if n is in range
00023 (0 <= n < _numberProps) and returns 0 if not.
00024 
00025 */
00026 class IPPDME_EXT_CLASS  ippSetPropCommand : public ippCommand {
00027   
00028 public:
00029 
00030   ippSetPropCommand(unsigned int tgNum);
00031 
00032   virtual ~ippSetPropCommand();
00033 
00034   void addPropValue(const ippProp& prop,double value);
00035   int getNumberProps() const;
00036   double getValue(int n) const;
00037   const ippProp& getProp(int n) const;
00038   
00039   virtual std::string getCommandString() const;
00040 
00041 private:
00042   std::vector<ippProp> _props;
00043   std::vector<double> _values;
00044 
00045   ippSetPropCommand(const ippSetPropCommand&);
00046   void operator=(const ippSetPropCommand&);
00047 };
00048 IPP_DECLARE_SMARTPOINTER(ippSetPropCommand);

Generated on Wed Nov 8 00:19:57 2006 for IPPDME by  doxygen 1.4.1