00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
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 }
00090
00091
00092 #endif