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

ippOnePropertyAlignment.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/Property/ippOnePropertyAlignment.h"
00013 #include "ippdme/misc/ippStringBuilder.h"
00014 #include "ippdme/ippProp.h"
00015 
00016 ippOnePropertyAlignment::ippOnePropertyAlignment
00017 (
00018   ippOtherKeyType keyword, // sould be Tool or FoundTool
00019   double inI1, double inJ1, double inK1, 
00020   double inI2,double inJ2, double inK2
00021 )
00022   : ippOneProperty(ippProp(keyword,Alignment))
00023 {
00024   _i1 = inI1;
00025   _j1 = inJ1;
00026   _k1 = inK1;
00027   _i2 = inI2;
00028   _j2 = inJ2;
00029   _k2 = inK2;
00030   _has2 = true;
00031 }
00032 
00033 ippOnePropertyAlignment::ippOnePropertyAlignment(
00034  ippOtherKeyType keyword, // sould be Tool or FoundTool
00035  double inI1, double inJ1, double inK1
00036 )
00037 :ippOneProperty(ippProp(keyword,Alignment))
00038 {
00039   _i1 = inI1;
00040   _j1 = inJ1;
00041   _k1 = inK1;
00042   _i2 = 0;
00043   _j2 = 0;
00044   _k2 = 0;
00045   _has2 = false;
00046 }
00047 
00048 void ippOnePropertyAlignment::propString(ippStringBuilder& s) const
00049 {
00050   s.StartFunc(_prop.toString().c_str());
00051     s.AppendParam(_i1);
00052     s.AppendParam(_j1);
00053     s.AppendParam(_k1);
00054     if (_has2) {
00055       s.AppendParam(_i2);
00056       s.AppendParam(_j2);
00057       s.AppendParam(_k2);
00058     }
00059   s.EndFunc();
00060 }

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