IGSTK
|
00001 /*========================================================================= 00002 00003 Program: Image Guided Surgery Software Toolkit 00004 Module: $RCSfile: igstkToken.h,v $ 00005 Language: C++ 00006 Date: $Date: 2008-02-11 01:41:51 $ 00007 Version: $Revision: 1.11 $ 00008 00009 Copyright (c) ISC Insight Software Consortium. All rights reserved. 00010 See IGSTKCopyright.txt or http://www.igstk.org/copyright.htm for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 00018 #ifndef __igstkToken_h 00019 #define __igstkToken_h 00020 00021 #include <string> 00022 #include <itkLightObject.h> 00023 #include "igstkMacros.h" 00024 00025 00026 namespace igstk 00027 { 00028 00029 00043 class Token 00044 { 00045 00046 public: 00047 00049 typedef unsigned long IdentifierType; 00050 00052 Token(); 00053 00055 virtual ~Token(); 00056 00058 igstkGetMacro( Identifier, IdentifierType ); 00059 00069 void Print(std::ostream& os, itk::Indent indent) const; 00070 00071 protected: 00072 00074 virtual void PrintSelf( std::ostream& os, ::itk::Indent indent ) const; 00075 00076 private: 00077 00079 IdentifierType m_Identifier; 00080 00083 static IdentifierType m_IdentifierCounter; 00084 00085 }; 00086 00087 std::ostream& operator<<(std::ostream& os, const Token& o); 00088 00089 } // end namespace igstk 00090 00091 00092 #endif