public EmbeddedCGenerator(ServiceGenerator.StackConfiguration Config)
     : base(Config)
 {
     switch (Config.newline)
     {
         case ServiceGenerator.NEWLINETYPE.CRLF:
             cl = "\r\n";
             break;
         case ServiceGenerator.NEWLINETYPE.LF:
             cl = "\n";
             break;
     }
     switch (Config.TargetPlatform)
     {
         case ServiceGenerator.PLATFORMS.MICROSTACK_POSIX:
             this.Platform = PLATFORMS.POSIX;
             this.SubTarget = SUBTARGETS.NONE;
             break;
         case ServiceGenerator.PLATFORMS.MICROSTACK_WINSOCK1:
             this.Platform = PLATFORMS.WINDOWS;
             this.SubTarget = SUBTARGETS.NONE;
             this.WinSock = 1;
             break;
         case ServiceGenerator.PLATFORMS.MICROSTACK_WINSOCK2:
             this.Platform = PLATFORMS.WINDOWS;
             this.SubTarget = SUBTARGETS.NONE;
             this.WinSock = 2;
             break;
         case ServiceGenerator.PLATFORMS.MICROSTACK_POCKETPC:
             this.Platform = PLATFORMS.WINDOWS;
             this.SubTarget = SUBTARGETS.PPC2003;
             this.WinSock = 1;
             break;
     }
 }
            public StackConfiguration()
            {
                UPNP_1dot1 = false;
                TargetPlatform = PLATFORMS.MICROSTACK_POSIX;

                outputpath = "";
                projectname = "";
                newline = NEWLINETYPE.LF;
                callconvention = CALLINGCONVENTION.DEFAULT;
                prefixlib = "ILib";
                indent = INDENTATION.TAB;
                classname = "";

                ExplicitErrorEncoding = false;
                EXTERN_Callbacks = false;

                DefaultIPAddressMonitor = true;
                HTTP_1dot1 = true;
                SupressSampleProject = false;

                SchemaGeneration = XSDSchemaGeneration.NONE;
            }