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

Nav Namespace Reference


Enumerations

enum  ESide { kLeft = 1, kRight = 2, kBoth = 3 }
enum  EDebugFlagBits {
  kCtorDtor = 0x01, kDebug = 0x02, kInfo = 0x04, kWarning = 0x08,
  kError = 0x10
}

Functions

UInt_t GetDebugFlags ()
void SetDebugFlags (const UInt_t dbgflgs)
void SetLogLevel (int level)
std::string GetName (const char *classTypeInfoName, const char *templateName=0)


Enumeration Type Documentation

enum EDebugFlagBits
 

Enumeration values:
kCtorDtor 
kDebug 
kInfo 
kWarning 
kError 

Definition at line 34 of file Nav.h.

00034                       { kCtorDtor = 0x01, // ctor and dtor
00035                         kDebug    = 0x02, // debug
00036                         kInfo     = 0x04, // information
00037                         kWarning  = 0x08, // warning
00038                         kError    = 0x10  // errors
00039   };

enum ESide
 

Enumeration values:
kLeft 
kRight 
kBoth 

Definition at line 31 of file Nav.h.

00031 { kLeft = 1,  kRight = 2, kBoth = 3 };


Function Documentation

UInt_t Nav::GetDebugFlags  ) 
 

Definition at line 53 of file Nav.cxx.

00053 { return fgDebugFlgs; }

std::string Nav::GetName const char *  classTypeInfoName,
const char *  templateName = 0
 

Definition at line 57 of file Nav.cxx.

References MSG.

Referenced by GeoScintMdlVolume::AddAirNode(), MCApplication::AddIons(), GeoStripVolume::AddPstyreneNodes(), PTSimApplication::BeginEvent(), IoFileListItem::BuildDefStreamList(), GeoShieldGroup::BuildNode(), GeoStripVolume::BuildStripShape(), PerOutputStream::ChangeFile(), Registry::Clear(), Anp::CountHist::ComputeRatio(), Anp::DrawSnarl::Config(), UgliLoanPool::DefaultConfig(), PlexLoanPool::DefaultConfig(), BfldLoanPool::DefaultConfig(), CamEvd::DoPrint(), MyClass::Draw(), NCExtrapolation::DrawAndWriteChiSqGraphs(), NCExtrapolation::DrawAndWriteContourGraphs(), Registry::Dump(), G3Material::Dump(), G3Node::ExpandDivisions(), DbuRunSummary::Fill(), DbuDaqFileSummary::Fill(), SimEventResult::FormatToOStream(), RawNDErrorBlock::FormatToOStream(), RawLIHeader::FormatToOStream(), RawHeader::FormatToOStream(), RawDigit::FormatToOStream(), RawDataBlock::FormatToOStream(), RawCrateStatus::FormatToOStream(), RawCalibrationFitsBlock::FormatToOStream(), FabSteelPlate::FormatToOStream(), FabPlnInstall::FormatToOStream(), CandBase::FormatToOStream(), BfldDbiPlaneMap::FormatToOStream(), BfieldCoilCurrent::FormatToOStream(), GeoScintMdlVolume::GeoScintMdlVolume(), GeoScintPlnVolume::GeoScintPlnVolume(), GeoSteelPlnVolume::GeoSteelPlnVolume(), RawRecord::GetName(), AlgHandle::GetName(), AlgConfig::GetName(), TNodeX::GetNodeToDepth(), Registry::GetRegistry(), GeoNode::GlobalToLocal(), GeoNode::GlobalToLocalVect(), MCApplication::InitMedia(), Anp::EventDisplay::InitTab(), GeoNode::LocalToGlobal(), GeoNode::LocalToGlobalVect(), MINFDetector::MakeBranch(), CamEvd::MakeCanvases(), CamEvd::MakeHistos(), Registry::Merge(), PTGuiMainFrame::Plot(), Registry::PrettyPrint(), UgliGeometry::Print(), RecMinosHdr::Print(), PTGuiMedium::Print(), PTGuiMaterial::Print(), Plexus::Print(), GeoStripVolume::Print(), GeoSteelPlnVolume::Print(), GeoScintPlnVolume::Print(), GeoScintMdlVolume::Print(), GeoMedium::Print(), MadScanDisplay::PrintDisplay(), MadEvDisplay::PrintDisplay(), Registry::PrintStream(), Anp::EventDisplay::PrintTab(), Plot::Hist::Rebin(), Anp::CountHist::Refill(), CalScheme::Reset(), Registry::Set(), TNodeX::SetParent(), GeoMedium::SetTracking(), MINFDetector::SetTreeAddress(), CheezyDisplay::SetupDisplay(), UgliScintMdlNode::UgliScintMdlNode(), UgliStripNode::UgliStripNode(), CalScheme::Unimplimented(), PTGuiMainFrame::Update(), and GeoNode::UpdateGlobalMatrix().

00058                                                    {
00059 
00060 //  Utility to convert name returned by typeid().name() into 
00061 //  class name and thence, if required, the iterator class name.
00062 //  
00063 //  Arguments: 
00064 //    classTypeInfoName   in   typeid().name() for class Xxx
00065 //    templateName        in   Template name = Ttt
00066 //
00067 //  Return:    
00068 //      class name    i.e.  Xxx        (if templateName = 0)
00069 //      iterator name i.e.  Ttt<Xxx>   (     otherwise     )
00070 //  
00071 
00072   static int encodingRegime = 0;
00073 
00074   // If the encoding regime isn't known, try to deduce it.
00075   if ( ! encodingRegime ) {
00076     const char* testName = typeid(NavEncodingRegimeTest).name();
00077     if ( strcmp(testName,"21NavEncodingRegimeTest") == 0 ) encodingRegime = 1;
00078     else { 
00079       MSG("Nav",Msg::kError) 
00080         << "Cannot deduce the type_info name encoding for: " 
00081         << testName << endl;
00082       encodingRegime = -1;
00083     }
00084   }
00085 
00086   if ( encodingRegime == 1 ) 
00087     while ( isdigit(*classTypeInfoName) ) ++classTypeInfoName;
00088 
00089   std::string name = classTypeInfoName;
00090   if ( templateName ) {
00091     std::string name2(templateName);
00092     name2 += "<" + name + ">";
00093     name = name2;
00094   }
00095   
00096   return name;
00097 
00098 }

void Nav::SetDebugFlags const UInt_t  dbgflgs  ) 
 

Definition at line 102 of file Nav.cxx.

References fgDebugFlgs.

00102 { fgDebugFlgs = dbgflgs; }

void Nav::SetLogLevel int  level  ) 
 

Definition at line 106 of file Nav.cxx.

References MsgService::GetStream(), MsgService::Instance(), and MsgStream::SetLogLevel().

Referenced by IoInputModuleValidate::IoInputModuleValidate(), main(), PerValidate::OutputStreamMgr(), and NavValidate::RunAllTests().

00106                                {
00107   MsgService::Instance()->GetStream("Nav")->SetLogLevel(level);
00108 }


Generated on Mon Jun 16 15:04:18 2008 for loon by  doxygen 1.3.9.1