Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members | Related Pages

NTFloatFun.C

Go to the documentation of this file.
00001 
00018 #include "jbltools/sfh/NTFloatFun.h"
00019 
00020 #include <iostream>
00021 
00022 static const char *ident="@(#)$Id: NTFloatFun.C,v 1.5 2005/07/21 11:20:12 blist Exp $";
00023 
00024 NTFloatFun::NTFloatFun (const std::string& name_) 
00025 : FloatFun (name_),
00026   iter (0), 
00027   offset (0)
00028 {        
00029 #if (DEBUG>0) 
00030   std::cout << "NTFloatFun: created '" << getName() << "'\n";
00031 #endif
00032 }
00033 
00034 NTFloatFun::NTFloatFun (const std::string& name_, const IntFun *iter_) 
00035 : FloatFun (name_ + (iter_ ? str('[')+iter_->getName()+']' : "")),
00036   iter (iter_), 
00037   offset (0)
00038 {        
00039 #if (DEBUG>0) 
00040   std::cout << "NTFloatFun: created '" << getName() << "'\n";
00041 #endif
00042 }
00043 
00044 NTFloatFun::NTFloatFun (const std::string& name_, int offset_) 
00045 : FloatFun (name_ + (offset_>=0 ? str('[')+str(offset_)+']' : "")),
00046   iter (0), 
00047   offset (offset_>=0 ? offset_ : 0)
00048 {        
00049 #if (DEBUG>0) 
00050   std::cout << "NTFloatFun: created '" << getName() << "'\n";
00051 #endif
00052 }
00053                                
00054 std::string NTFloatFun::getBaseName() const {
00055   std::string result = getName();
00056   // find first occurence of "[", and erase everything from there on
00057   std::string::size_type pos = result.find('[');
00058   if (pos != std::string::npos) result.erase(pos);
00059   return result;
00060 }

Generated on Thu Oct 26 12:52:58 2006 for SFH by doxygen 1.3.2