/usr/include/IGSTK/igstkToken.h is in libigstk4-dev 4.4.0-2build2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 | /*=========================================================================
Program: Image Guided Surgery Software Toolkit
Module: $RCSfile: igstkToken.h,v $
Language: C++
Date: $Date: 2008-02-11 01:41:51 $
Version: $Revision: 1.11 $
Copyright (c) ISC Insight Software Consortium. All rights reserved.
See IGSTKCopyright.txt or http://www.igstk.org/copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#ifndef __igstkToken_h
#define __igstkToken_h
#include <string>
#include <itkLightObject.h>
#include "igstkMacros.h"
namespace igstk
{
/** \class Token
\brief Class that provides unique identifiers.
This class is intended to be used as the base class for the
StatMachineState and StateMachineInput classes. It factorizes common
behavior regarding the use of the unique identifier and the use of a text
description.
\sa StateMachine
\sa StateMachineInput
\sa StateMachineState
\sa StateMachineAction */
class Token
{
public:
/** Type used to represent the codes of the inputs */
typedef unsigned long IdentifierType;
/** Constructor. It initializes all the member variables */
Token();
/** Destructor */
virtual ~Token();
/** Returns the unique identifier of the current instance */
igstkGetMacro( Identifier, IdentifierType );
/** \warning A SetIndentifier() method should never be created since
* it will
* open a door for violating the uniqueness of the Identifier.
*
* SetIndentifier(); Purposely not created.
*/
/** Method for printing out the member variables of this object
* to a ostream */
void Print(std::ostream& os, itk::Indent indent) const;
protected:
/** Print the object information in a stream. */
virtual void PrintSelf( std::ostream& os, ::itk::Indent indent ) const;
private:
/** Variable that holds the unique identifier of this State */
IdentifierType m_Identifier;
/** Static variable that will provide an unique Id to every new class
* instance */
static IdentifierType m_IdentifierCounter;
};
std::ostream& operator<<(std::ostream& os, const Token& o);
} // end namespace igstk
#endif
|