Exemple #1
0
        public Source(Simulator simulator, SimulationSettings simulationSettings)
        {
            var sourceSettings = new SourceSettings {
            };

            sourceSettings.flags = simulationSettings.flags;

            var status = API.iplSourceCreate(simulator.Get(), ref sourceSettings, out mSource);

            if (status != Error.Success)
            {
                throw new Exception(string.Format("Unable to create source for simulation. [{0}]", status));
            }
        }