/**
 * @file
 * $Id$
 * $Revision$
 * $Author$
 * $Date$
 *
 * This file is a part of The iWear Framework.
 * In particular is this file a part of the Framework Context Library
 *
 * The iWear Framework is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by the
 * Free Software Foundation as in version 2 of the License.

 * 
 * The iWear Framework is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 * more details.
 * 
 * You should have received a copy of the GNU General Public License along with
 * The iWear Framework; if not, write to the Free Software Foundation, Inc., 59
 * Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

#ifndef __CONTEXTPART_H
#define __CONTEXTPART_H
namespace iwear{
namespace context{

/**
 * This is just a small class that has the basic properties of something that
 * has to with our contexts - a boolean value.
 */
class ContextPart{
private:
protected:
    /**
     * The value of the context part.
     */
    bool value;
public:
    /**
     * Standard constructor. Sets the member "value" to "false".
     */
    ContextPart(void)
	: value(false)
    {
	
    }

    virtual ~ContextPart(void)
    {
	// Nothing yet to do!
    }

    /**
     * Function to get the value of this context part. It may be overridden by
     * subclasses.
     *
     * @return the context parts value.
     */
    virtual bool get_value(void) const{
	return value;
    }
}; // class ContextPart
} // namespace context
} // namespace iwear

#endif // __CONTEXTPART_H
