// Construction
 public CPackageOutputState( CPackageOutputEntry config, EPackageInputID input_id )
 {
     ID = ++m_IDTracker;
     InputID = input_id;
     Config = config;
     State = EOutputPackageState.WaitingOnInput;
 }
Ejemplo n.º 2
0
        // Methods
        // Public interface
        public static void Make_Sample_Config()
        {
            CPackageInputEntry package1 = new CPackageInputEntry( "TestPackage" );

            CPackageLocation location = new CPackageLocation( "ftp://www.testurl.com/files", EOperatingSystem.Windows );
            package1.Mirrors.Add( location );

            location = new CPackageLocation( "ftp://www.testy.com/something/files", EOperatingSystem.Linux );
            package1.Mirrors.Add( location );

            m_Instance.Inputs.Add( package1 );

            CPackageOutputEntry output1 = new CPackageOutputEntry( "Tag1", "TestPackage", "src/", "./TestPackage/" );
            m_Instance.Outputs.Add( output1 );

            CPackageOutputEntry output2 = new CPackageOutputEntry( "Tag2", "TestPackage", "lib/test_package32.dll", "./External_DLL_32/" );
            m_Instance.Outputs.Add( output2 );
        }