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

ippProp.cpp

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 #include "stdafx.h"
00012 
00013 #include "ippdme/ippProp.h"
00014 
00015 ippProp::ippProp()
00016 : _key1(EmptyKey)
00017 , _key2(EmptyKey)
00018 , _key3(EmptyKey)
00019 , _key4(EmptyKey)
00020 {
00021 }
00022 
00023 ippProp::ippProp(
00024   ippOtherKeyType inKey1,
00025   ippOtherKeyType inKey2,
00026   ippOtherKeyType inKey3,
00027   ippOtherKeyType inKey4
00028 )
00029   : _key1(inKey1)
00030   , _key2(inKey2)
00031   , _key3(inKey3)
00032   , _key4(inKey4)
00033 {
00034 }
00035 
00036 ippProp::ippProp(const ippProp& rhs)
00037   : _key1(rhs._key1)
00038   , _key2(rhs._key2)
00039   , _key3(rhs._key3)
00040   , _key4(rhs._key4)
00041 {
00042 }
00043 
00044 ippProp::~ippProp()
00045 {
00046    
00047 }
00048 bool ippProp::operator==(const ippProp& rhs) const
00049 {
00050   if (_key1 != rhs._key1) return false;
00051   if (_key2 != rhs._key2) return false;
00052   if (_key3 != rhs._key3) return false;
00053   if (_key4 != rhs._key4) return false;
00054   return true;  
00055 }
00056 bool ippProp::operator!=(const ippProp& rhs) const
00057 {
00058   return !((*this)==rhs);
00059 }
00060 
00061 int ippProp::getNumberKeys() const
00062 {
00063   if (_key1 == EmptyKey) return 0;
00064   if (_key2 == EmptyKey) return 1;
00065   if (_key3 == EmptyKey) return 2;
00066   if (_key4 == EmptyKey) return 3;
00067   return 4;
00068 }
00069 
00070 std::string ippProp::toString() const 
00071 {
00072   return ComposeName(_key1,_key2,_key3,_key4);
00073 }

Generated on Wed Nov 8 00:20:03 2006 for IPPDME by  doxygen 1.4.1