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

ippGetPropCommand.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 #include "ippdme/Command/ippGetPropCommand.h"
00013 #include "ippdme/misc/ippStringBuilder.h"
00014 
00015 
00016 ippGetPropCommand::ippGetPropCommand(unsigned int tgNum)
00017   : ippCommand(tgNum, CommandTag, ipp::GetProp)
00018 {
00019 }
00020 
00021 ippGetPropCommand::ippGetPropCommand(
00022   unsigned int tgNum,
00023   tagIdType inTagType,
00024   ippCommandNameType inCommandName
00025 )
00026   : ippCommand(tgNum, inTagType, inCommandName)
00027 {
00028 }
00029 
00030 void ippGetPropCommand::addProp(const ippProp& prop)
00031 {
00032   _props.push_back(prop);
00033 
00034 }
00035   
00036 const ippProp& ippGetPropCommand::getProp(int i) const
00037 {
00038   return _props[i];
00039 }
00040 int ippGetPropCommand::getNumberProps() const
00041 {
00042   return _props.size();
00043 }
00044 
00045 
00046 ippGetPropCommand::~ippGetPropCommand()
00047 {
00048 }
00049 
00050 
00051 std::string ippGetPropCommand::getCommandString() const
00052 {
00053   ippStringBuilder builder(_tag);
00054   builder.StartFunc("GetProp");
00055   
00056   for (int m = 0; m < getNumberProps(); m++) {
00057     builder.AppendFunc(getProp(m).toString().c_str());
00058   }
00059  
00060   builder.EndFunc();
00061   return builder.ToString();
00062   
00063 }
00064 

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