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/PlanServer/Includes/PslAttributeImpl.hh

Go to the documentation of this file.
00001 // -*- Mode: c++ -*-
00002 //     File: $Source: /home/cvs/ISG-Repository/IDEA-DEV/Core/PlanServer/Includes/PslAttributeImpl.hh,v $
00003 //      Tag: $Name: DR_01_11_06 $
00004 //      CVS: $Id: PslAttributeImpl.hh,v 1.5 2005/11/08 18:32:41 rijsman Exp $
00005 //     Info: $CVSROOT/IDEA-DEV/Copyright.txt
00006 
00007 #ifndef PSL_ATTRIBUTE_HEADER_IMPLEMENTATION_
00008 #define PSL_ATTRIBUTE_HEADER_IMPLEMENTATION_
00009 
00010 #include "PslContainers.hh"
00011 #include "TokenLocation.hh"
00012 
00013 namespace IDEA
00014 {
00022   class PslAttributeImpl
00023   {
00024   public:
00028     PslAttributeImpl( const std::string& name );
00032     virtual ~PslAttributeImpl();
00036     const std::string& getName() const;
00040     const PslPredicate* createPredicate( const PslAttribute* attr, const std::string& name  );
00044     const PslPredicate* getPredicate( const std::string& name  ) const;
00048     const String2PslPredicateMap& getPredicates() const;
00055     const std::string& getComRelayName() const;
00060     void setComRelayName( const std::string& name );
00064     const TokenLocation& getTargetLocation() const;
00068     void setTargetLocation( const TokenLocation& target );
00072     void print( std::ostream& os ) const;
00076     void setAsDefaultExecutable();
00080     void setAsDefaultGoal();
00084     bool isDefaultExecutable() const;
00088     bool isDefaultGoal() const;
00089   private:
00090     std::string m_Name;
00091     std::string m_ComRelayName;
00092     TokenLocation m_TargetLocation;
00093 
00094     typedef enum 
00095       {
00096         GOAL = 0,
00097         EXECUTABLE,
00098         INTERMEDIATE
00099       } Type;
00100 
00101     Type m_DefaultType;
00102 
00103     String2PslPredicateMap m_Predicates;
00104   };
00105 };
00106 
00107 #endif //PSL_ATTRIBUTE_HEADER_IMPLEMENTATION_

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