コード例 #1
0
            /// <summary>
            /// Instantiates a concrete class of camera
            /// </summary>
            /// <param name="cameraConfig"></param>
            /// <returns></returns>
            public virtual BaseCamera CreateCamera(CameraConfig cameraConfig)
            {
                CameraBuilder builder = this.Builders[cameraConfig.CameraClass];

                if (builder == null)
                {
                    throw new System.ArgumentNullException(cameraConfig.CameraClass);
                }
                return(builder.Build(cameraConfig));
            }
コード例 #2
0
 /// <summary>
 /// Registers a builder for a concrete camera class
 /// </summary>
 /// <param name="key">The class name of the concrete camera class builder</param>
 /// <param name="builder">the concrete camera builder class</param>
 public void RegisterBuilder(string key, CameraBuilder builder)
 {
     this.Builders.Add(key, builder);
 }
コード例 #3
0
 public virtual void register_builder(string key, CameraBuilder builder)
 {
     throw new NotImplementedException("Not yet implemented.");
 }