Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

/home/pauldt/projects/IDEA/IDEA-ALL/IDEA-DEV/Core/Utilities/Includes/TokenLocation.hh

Go to the documentation of this file.
00001 // -*- Mode: c++ -*-
00002 //     File: $Source: /home/cvs/ISG-Repository/IDEA-DEV/Core/Utilities/Includes/TokenLocation.hh,v $
00003 //      Tag: $Name: DR_01_11_06 $
00004 //      CVS: $Id: TokenLocation.hh,v 1.4 2005/11/08 18:32:46 rijsman Exp $
00005 //     Info: $CVSROOT/IDEA-DEV/Copyright.txt
00006 #ifndef TOKEN_LOCATION_HEADER_FILE_
00007 #define TOKEN_LOCATION_HEADER_FILE_
00008 
00009 #include "Utilities.hh"
00010 #include <iostream>
00011 
00012 namespace IDEA
00013 {
00023   class TokenLocation
00024   {
00025   public:
00029     TokenLocation():
00030       m_AgentName( UNKNOWN ),
00031       m_ObjectName( UNKNOWN ),
00032       m_AttributeName( UNKNOWN ),
00033       m_IsDefined( false )
00034     {
00035     }
00036       
00040     TokenLocation(  const std::string& agentName,
00041                     const std::string& objectName,
00042                     const std::string& attributeName ):
00043       m_AgentName( agentName ),
00044       m_ObjectName( objectName ),
00045       m_AttributeName( attributeName ),
00046       m_IsDefined( true )
00047     {
00048     }
00052     ~TokenLocation() 
00053     {
00054     }
00058     bool isDefined() const
00059     {
00060       return m_IsDefined;
00061     }
00065     const std::string& getAgentName() const 
00066     { 
00067       return m_AgentName; 
00068     }
00072     const std::string& getObjectName() const 
00073     { 
00074       return m_ObjectName; 
00075     }
00079     const std::string& getAttributeName() const 
00080     { 
00081       return m_AttributeName; 
00082     }
00086     void operator=( const TokenLocation& v )
00087     {
00088       m_IsDefined = v.isDefined();
00089       m_AttributeName = v.getAttributeName();
00090       m_ObjectName = v.getObjectName();
00091       m_AgentName = v.getAgentName();
00092     }
00093   private:
00094     std::string m_AgentName;
00095     std::string m_ObjectName;
00096     std::string m_AttributeName;
00097     bool m_IsDefined;
00098   };
00099 
00100   std::ostream& operator<< ( std::ostream& os, const TokenLocation& location );
00101 
00102 }
00103 
00104 #endif //TOKEN_LOCATION_HEADER_FILE_

Contact information
© IDEA
Generated on Fri Feb 3 17:09:41 2006 for IDEA.