#include "Configuration.h"

#include "Prototype_repository.h"
#include "Common_configuration.h"

namespace MM
{
Own <Common_configuration>     Configuration::common_part_;

int             Configuration::argc_ = 0;
Array <Text>    Configuration::argv_ = Array <Text> ();


Configuration::
Configuration ()
{
    if (!common_part_.was_initialized())
        common_part_.adopt (new Common_configuration ());
}

Configuration::
Configuration (int argc, char * argv[])
{
    argc_ = argc;

    for (int i=0;  i<argc;  ++i)
        argv_.push_back (argv[i]);

    if (!common_part_.was_initialized())
        common_part_.adopt (new Common_configuration ());//*/
}


Configuration::
~Configuration ()
{
    //Prototype_repository::destroy();
}

}//MM

