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/PslConstraintImpl.hh

Go to the documentation of this file.
00001 // -*- Mode: C++ -*-
00002 //      CVS: $Id: PslConstraintImpl.hh,v 1.6 2005/11/08 18:32:41 rijsman Exp $
00003 //      Tag: $name$
00004 //     Info: $CVSROOT/Copyright.txt
00005 #ifndef PSL_CONSTRAINT_IMPL_HEADER_
00006 #define PSL_CONSTRAINT_IMPL_HEADER_
00007 
00008 #include <iostream>
00009 
00010 namespace IDEA
00011 {
00012   class PslDatabase;
00013 
00021   class PslConstraintImpl
00022   {
00023   public:
00027     virtual ~PslConstraintImpl();
00031     const std::string& getName() const;
00035     virtual int getId() const = 0;
00039     virtual bool isActive() const = 0;
00043     void activate( int authority = -1 );
00048     virtual void deActivate() const = 0;
00052     virtual void execute() = 0;
00058     int getAuthority() const;
00062     virtual void print( std::ostream& os );
00063   protected:
00067     PslConstraintImpl( int authority,
00068                        const std::string& name );
00069 
00070     void setAuthority( int authority );
00071     virtual void activateExtended( int authority = -1 ) const = 0;
00072   private:
00076     PslConstraintImpl();
00077 
00078     int m_Authority;
00079   
00080     std::string m_Name;
00081   };
00082 }
00083 
00084 #endif //PSL_CONSTRAINT_IMPL_HEADER_

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