/**
 * @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 __ATOMICCONTEXT_H
#define __ATOMICCONTEXT_H

#include <iwear-context/contextobject.h>

using namespace std;

namespace iwear{
namespace context{
class AtomicContext : public ContextObject{
private:
    /**
     * This constructor is private to prevent people from using it.
     */
    AtomicContext(void){}

    /**
     * The type of the context in the next level of the Context-Tree.
     */
    AtomicType atomic_type;
protected:
public:
    /**
     * Standard constructor for the AtomicContext.
     * @param name the unique name of the context.
     * @param atomic_type specifies the next level of the AtomicContext.
     */
    AtomicContext(const string& name, AtomicType atomic_type) 
	: ContextObject(name, ATOMIC, 0),
	  atomic_type(atomic_type)
    {
	
    }
    
    /**
     * Get the type of the context in the next level the Context-Tree.
     * @return the type of the context in the next level of the Context-Tree.
     */
    AtomicType get_atomic_type(void){
	return atomic_type;
    }

    virtual ~AtomicContext(void);
}; // class AtomicContext
} // namespace context
} // namespace iwear
#endif // __ATOMICCONTEXT_H
