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 //----------------------------------------------------------------------------- 00012 // 00013 // Description : 00014 // Use this for single number data from 00015 // GetProp (key1.key2.key3()), 00016 // GetPropE(key1.key2.key3()), 00017 // GetProp (key1.key2.key3.key4()), or 00018 // GetPropE(key1.key2.key3.key4()). 00019 // Two constructors are provided, one with three keys, and one with four. 00020 //----------------------------------------------------------------------------- 00021 00022 #pragma once 00023 00024 #include "ippdme/Property/ippOneProperty.h" 00025 #include "ippdme/ippOtherKeyType.h" 00026 #include "ippdme/ippProp.h" 00027 00028 //----------------------------------------------------------------------------- 00029 class IPPDME_EXT_CLASS ippOnePropertyNumber : public ippOneProperty 00030 { 00031 private: 00032 double _val; 00033 00034 public: 00035 ippOnePropertyNumber( 00036 const ippProp& prop, 00037 double inVal); 00038 00039 virtual ~ippOnePropertyNumber(){} 00040 00041 void setVal(double inVal){ _val = inVal; } 00042 double getVal()const{ return _val; } 00043 00044 00045 virtual void propString(ippStringBuilder& ) const; 00046 private: 00047 ippOnePropertyNumber(const ippOnePropertyNumber&); 00048 void operator=(const ippOnePropertyNumber&); 00049 }; 00050 IPP_DECLARE_SMARTPOINTER(ippOnePropertyNumber);