/**
 * @file
 * $Id$
 * $Revision$
 * $Author$
 * $Date$
 *
 * This file is part of The iWear Framework.
 *
 * 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 __IWREMOTE_NAMESPACE_H
#define __IWREMOTE_NAMESPACE_H

#include <iwremote/statement.h>
namespace iwear
{
    namespace net
    {

enum nit_type 
{
    namespace_t,
    class_t,
    enum_t,
    num_nit_type
};

/**
 * Item that can be within a namespace
 */	
class NamespaceItem: public virtual Statement
{
public:
    virtual ~NamespaceItem() { }
    virtual nit_type get_namespaceitem_type( void ) = 0;
};    
/**
 * A Namespace can hold classes and enums.
 */
class Namespace : public NamespaceItem
{
private:
protected:
public:
    Namespace* parent;

    list<NamespaceItem*> items;
    string id;
    Namespace( const string& _id ) : id(_id) { }
    virtual ~Namespace() { }

    void add_item( NamespaceItem& ni );
    virtual string get_crcstring( void );
    virtual nit_type get_namespaceitem_type( void ) { return namespace_t; }
};

}
}
#endif
