Skip to content

Commit

Permalink
[BMSPT-24] refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
BalintBende committed Oct 6, 2023
1 parent aec23bd commit 7aa1914
Show file tree
Hide file tree
Showing 136 changed files with 475 additions and 389 deletions.
5 changes: 3 additions & 2 deletions src/bcf-converter/Builder/Bcf21/BimSnippetBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using bcf.bcf21;
using BcfConverter.Model;
using BcfConverter.Model.Bcf21;

namespace bcf.Builder.Bcf21;
namespace BcfConverter.Builder.Bcf21;

public class BimSnippetBuilder : IBimSnippetBuilder<BimSnippetBuilder> {
private readonly BimSnippet _snippet = new();
Expand Down
5 changes: 3 additions & 2 deletions src/bcf-converter/Builder/Bcf21/BitmapBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using System;
using bcf.bcf21;
using BcfConverter.Model;
using BcfConverter.Model.Bcf21;

namespace bcf.Builder.Bcf21;
namespace BcfConverter.Builder.Bcf21;

public class BitmapBuilder : IBitmapBuilder<BitmapBuilder> {
private readonly VisualizationInfoBitmap _bitmap = new();
Expand Down
5 changes: 3 additions & 2 deletions src/bcf-converter/Builder/Bcf21/CameraBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using bcf.bcf21;

namespace bcf.Builder.Bcf21;
using BcfConverter.Model.Bcf21;

namespace BcfConverter.Builder.Bcf21;

public class CameraBuilder : ICameraBuilder {
private readonly Direction _direction = new();
Expand Down
6 changes: 4 additions & 2 deletions src/bcf-converter/Builder/Bcf21/ClippingPlaneBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using bcf.bcf21;

namespace bcf.Builder.Bcf21;
using BcfConverter.Model;
using BcfConverter.Model.Bcf21;

namespace BcfConverter.Builder.Bcf21;

public class ClippingPlaneBuilder :
IClippingPlaneBuilder<ClippingPlaneBuilder> {
Expand Down
5 changes: 3 additions & 2 deletions src/bcf-converter/Builder/Bcf21/ColorBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using System;
using bcf.bcf21;
using BcfConverter.Model;
using BcfConverter.Model.Bcf21;

namespace bcf.Builder.Bcf21;
namespace BcfConverter.Builder.Bcf21;

public class ColorBuilder : IColorBuilder<ColorBuilder, ComponentBuilder> {
private readonly ComponentColoringColor _color = new();
Expand Down
5 changes: 3 additions & 2 deletions src/bcf-converter/Builder/Bcf21/CommentBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using System;
using bcf.bcf21;
using BcfConverter.Model;
using BcfConverter.Model.Bcf21;

namespace bcf.Builder.Bcf21;
namespace BcfConverter.Builder.Bcf21;

public class CommentBuilder : ICommentBuilder<CommentBuilder> {
private readonly Comment _comment = new();
Expand Down
5 changes: 3 additions & 2 deletions src/bcf-converter/Builder/Bcf21/ComponentBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using bcf.bcf21;
using BcfConverter.Model;
using BcfConverter.Model.Bcf21;

namespace bcf.Builder.Bcf21;
namespace BcfConverter.Builder.Bcf21;

public class ComponentBuilder : IComponentBuilder<ComponentBuilder> {
private readonly Component _component = new();
Expand Down
6 changes: 4 additions & 2 deletions src/bcf-converter/Builder/Bcf21/DocumentReferenceBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using bcf.bcf21;

namespace bcf.Builder.Bcf21;
using BcfConverter.Model;
using BcfConverter.Model.Bcf21;

namespace BcfConverter.Builder.Bcf21;

public partial class DocumentReferenceBuilder :
IDocumentReferenceBuilder<DocumentReferenceBuilder> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace bcf.Builder.Bcf21;
namespace BcfConverter.Builder.Bcf21;

public partial class DocumentReferenceBuilder :
IDocumentReferenceBuilderExtension<DocumentReferenceBuilder> {
Expand Down
5 changes: 3 additions & 2 deletions src/bcf-converter/Builder/Bcf21/HeaderFileBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using System;
using bcf.bcf21;
using BcfConverter.Model;
using BcfConverter.Model.Bcf21;

namespace bcf.Builder.Bcf21;
namespace BcfConverter.Builder.Bcf21;

public class HeaderFileBuilder : IHeaderFileBuilder<HeaderFileBuilder> {
private readonly HeaderFile _file = new();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace bcf.Builder.Bcf21;
namespace BcfConverter.Builder.Bcf21;

public interface IDocumentReferenceBuilderExtension<out TBuilder> {
TBuilder AddIsExternal(bool isExternal);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace bcf.Builder.Bcf21;
namespace BcfConverter.Builder.Bcf21;

public interface IProjectBuilderExtension<out TBuilder> {
TBuilder AddExtensionSchema(string schema);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace bcf.Builder.Bcf21;
namespace BcfConverter.Builder.Bcf21;

public interface IVersionBuilderExtension<out TBuilder> {
TBuilder AddDetailedVersion(string version);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace bcf.Builder.Bcf21;
namespace BcfConverter.Builder.Bcf21;

public interface IViewPointBuilderExtension<
out TBuilder,
Expand Down
6 changes: 4 additions & 2 deletions src/bcf-converter/Builder/Bcf21/LineBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using bcf.bcf21;

namespace bcf.Builder.Bcf21;
using BcfConverter.Model;
using BcfConverter.Model.Bcf21;

namespace BcfConverter.Builder.Bcf21;

public class LineBuilder : ILineBuilder<LineBuilder> {
private readonly Line _line = new();
Expand Down
5 changes: 3 additions & 2 deletions src/bcf-converter/Builder/Bcf21/MarkupBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using System;
using bcf.bcf21;
using BcfConverter.Model;
using BcfConverter.Model.Bcf21;

namespace bcf.Builder.Bcf21;
namespace BcfConverter.Builder.Bcf21;

public class MarkupBuilder :
IMarkupBuilder<
Expand Down
5 changes: 3 additions & 2 deletions src/bcf-converter/Builder/Bcf21/OrthogonalCameraBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using System;
using bcf.bcf21;
using BcfConverter.Model;
using BcfConverter.Model.Bcf21;

namespace bcf.Builder.Bcf21;
namespace BcfConverter.Builder.Bcf21;

public class OrthogonalCameraBuilder :
IOrthogonalCameraBuilder<OrthogonalCameraBuilder, CameraBuilder> {
Expand Down
5 changes: 3 additions & 2 deletions src/bcf-converter/Builder/Bcf21/PerspectiveCameraBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using System;
using bcf.bcf21;
using BcfConverter.Model;
using BcfConverter.Model.Bcf21;

namespace bcf.Builder.Bcf21;
namespace BcfConverter.Builder.Bcf21;

public class PerspectiveCameraBuilder :
IPerspectiveCameraBuilder<PerspectiveCameraBuilder, CameraBuilder> {
Expand Down
5 changes: 3 additions & 2 deletions src/bcf-converter/Builder/Bcf21/ProjectBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using bcf.bcf21;
using BcfConverter.Model;
using BcfConverter.Model.Bcf21;

namespace bcf.Builder.Bcf21;
namespace BcfConverter.Builder.Bcf21;

public partial class ProjectBuilder : IProjectBuilder<ProjectBuilder> {
private readonly ProjectExtension _project = new();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace bcf.Builder.Bcf21;
namespace BcfConverter.Builder.Bcf21;

public partial class ProjectBuilder : IProjectBuilderExtension<ProjectBuilder> {
public ProjectBuilder AddExtensionSchema(string schema) {
Expand Down
5 changes: 3 additions & 2 deletions src/bcf-converter/Builder/Bcf21/VersionBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using bcf.bcf21;
using BcfConverter.Model;
using BcfConverter.Model.Bcf21;

namespace bcf.Builder.Bcf21;
namespace BcfConverter.Builder.Bcf21;

public partial class VersionBuilder : IVersionBuilder<VersionBuilder> {
private readonly Version _version = new();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace bcf.Builder.Bcf21;
namespace BcfConverter.Builder.Bcf21;

public partial class VersionBuilder : IVersionBuilderExtension<VersionBuilder> {
public VersionBuilder AddDetailedVersion(string version) {
Expand Down
5 changes: 3 additions & 2 deletions src/bcf-converter/Builder/Bcf21/ViewPointBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using System;
using bcf.bcf21;
using BcfConverter.Model;
using BcfConverter.Model.Bcf21;

namespace bcf.Builder.Bcf21;
namespace BcfConverter.Builder.Bcf21;

public partial class ViewPointBuilder :
IViewPointBuilder<
Expand Down
5 changes: 3 additions & 2 deletions src/bcf-converter/Builder/Bcf21/ViewPointBuilderExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using System;
using bcf.bcf21;
using BcfConverter.Model;
using BcfConverter.Model.Bcf21;

namespace bcf.Builder.Bcf21;
namespace BcfConverter.Builder.Bcf21;

public partial class ViewPointBuilder :
IViewPointBuilderExtension<ViewPointBuilder, ViewSetupHintsBuilder> {
Expand Down
6 changes: 4 additions & 2 deletions src/bcf-converter/Builder/Bcf21/ViewSetupHintsBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using bcf.bcf21;

namespace bcf.Builder.Bcf21;
using BcfConverter.Model;
using BcfConverter.Model.Bcf21;

namespace BcfConverter.Builder.Bcf21;

public class ViewSetupHintsBuilder :
IViewSetupHintsBuilder<ViewSetupHintsBuilder> {
Expand Down
5 changes: 3 additions & 2 deletions src/bcf-converter/Builder/Bcf21/VisibilityBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using System;
using bcf.bcf21;
using BcfConverter.Model;
using BcfConverter.Model.Bcf21;

namespace bcf.Builder.Bcf21;
namespace BcfConverter.Builder.Bcf21;

public class VisibilityBuilder :
IVisibilityBuilder<VisibilityBuilder, ComponentBuilder> {
Expand Down
6 changes: 4 additions & 2 deletions src/bcf-converter/Builder/Bcf30/BimSnippetBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using bcf.bcf30;

namespace bcf.Builder.Bcf30;
using BcfConverter.Model;
using BcfConverter.Model.Bcf30;

namespace BcfConverter.Builder.Bcf30;

public class BimSnippetBuilder : IBimSnippetBuilder<BimSnippetBuilder> {
private readonly BimSnippet _snippet = new();
Expand Down
5 changes: 3 additions & 2 deletions src/bcf-converter/Builder/Bcf30/BitmapBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using System;
using bcf.bcf30;
using BcfConverter.Model;
using BcfConverter.Model.Bcf30;

namespace bcf.Builder.Bcf30;
namespace BcfConverter.Builder.Bcf30;

public class BitmapBuilder : IBitmapBuilder<BitmapBuilder> {
private readonly Bitmap _bitmap = new();
Expand Down
4 changes: 2 additions & 2 deletions src/bcf-converter/Builder/Bcf30/CameraBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using bcf.bcf30;
using BcfConverter.Model.Bcf30;

namespace bcf.Builder.Bcf30;
namespace BcfConverter.Builder.Bcf30;

public class CameraBuilder : ICameraBuilder {
private readonly Direction _direction = new();
Expand Down
5 changes: 3 additions & 2 deletions src/bcf-converter/Builder/Bcf30/ClippingPlaneBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using bcf.bcf30;
using BcfConverter.Model;
using BcfConverter.Model.Bcf30;

namespace bcf.Builder.Bcf30;
namespace BcfConverter.Builder.Bcf30;

public class ClippingPlaneBuilder :
IClippingPlaneBuilder<ClippingPlaneBuilder> {
Expand Down
5 changes: 3 additions & 2 deletions src/bcf-converter/Builder/Bcf30/ColorBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using System;
using bcf.bcf30;
using BcfConverter.Model;
using BcfConverter.Model.Bcf30;

namespace bcf.Builder.Bcf30;
namespace BcfConverter.Builder.Bcf30;

public class ColorBuilder : IColorBuilder<ColorBuilder, ComponentBuilder> {
private readonly ComponentColoringColor _color = new();
Expand Down
5 changes: 3 additions & 2 deletions src/bcf-converter/Builder/Bcf30/CommentBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using System;
using bcf.bcf30;
using BcfConverter.Model;
using BcfConverter.Model.Bcf30;

namespace bcf.Builder.Bcf30;
namespace BcfConverter.Builder.Bcf30;

public class CommentBuilder : ICommentBuilder<CommentBuilder> {
private readonly Comment _comment = new();
Expand Down
6 changes: 4 additions & 2 deletions src/bcf-converter/Builder/Bcf30/ComponentBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using bcf.bcf30;

namespace bcf.Builder.Bcf30;
using BcfConverter.Model;
using BcfConverter.Model.Bcf30;

namespace BcfConverter.Builder.Bcf30;

public class ComponentBuilder : IComponentBuilder<ComponentBuilder> {
private readonly Component _component = new();
Expand Down
5 changes: 3 additions & 2 deletions src/bcf-converter/Builder/Bcf30/DocumentBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using bcf.bcf30;
using BcfConverter.Model;
using BcfConverter.Model.Bcf30;

namespace bcf.Builder.Bcf30;
namespace BcfConverter.Builder.Bcf30;

public class DocumentBuilder : IDocumentBuilder<DocumentBuilder> {
private readonly Document _document = new();
Expand Down
5 changes: 3 additions & 2 deletions src/bcf-converter/Builder/Bcf30/DocumentInfoBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using System;
using bcf.bcf30;
using BcfConverter.Model;
using BcfConverter.Model.Bcf30;

namespace bcf.Builder.Bcf30;
namespace BcfConverter.Builder.Bcf30;

public class DocumentInfoBuilder : IDocumentInfoBuilder<DocumentInfoBuilder, DocumentBuilder> {
private readonly DocumentInfo _documentInfo = new();
Expand Down
6 changes: 4 additions & 2 deletions src/bcf-converter/Builder/Bcf30/DocumentReferenceBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using bcf.bcf30;

namespace bcf.Builder.Bcf30;
using BcfConverter.Model;
using BcfConverter.Model.Bcf30;

namespace BcfConverter.Builder.Bcf30;

public partial class DocumentReferenceBuilder :
IDocumentReferenceBuilder<DocumentReferenceBuilder> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace bcf.Builder.Bcf30;
namespace BcfConverter.Builder.Bcf30;

public partial class DocumentReferenceBuilder :
IDocumentReferenceBuilderExtension<DocumentReferenceBuilder> {
Expand Down
6 changes: 4 additions & 2 deletions src/bcf-converter/Builder/Bcf30/ExtensionsBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using bcf.bcf30;

namespace bcf.Builder.Bcf30;
using BcfConverter.Model;
using BcfConverter.Model.Bcf30;

namespace BcfConverter.Builder.Bcf30;

public class ExtensionsBuilder : IExtensionsBuilder<ExtensionsBuilder> {
private readonly Extensions _extensions = new();
Expand Down
5 changes: 3 additions & 2 deletions src/bcf-converter/Builder/Bcf30/HeaderFileBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using System;
using bcf.bcf30;
using BcfConverter.Model;
using BcfConverter.Model.Bcf30;

namespace bcf.Builder.Bcf30;
namespace BcfConverter.Builder.Bcf30;

public class HeaderFileBuilder : IHeaderFileBuilder<HeaderFileBuilder> {
private readonly File _file = new();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace bcf.Builder.Bcf30;
namespace BcfConverter.Builder.Bcf30;

public interface IDocumentReferenceBuilderExtension<out TBuilder> {
TBuilder AddDocumentGuid(string guid);
Expand Down
2 changes: 1 addition & 1 deletion src/bcf-converter/Builder/Bcf30/IMarkupBuilderExtension.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace bcf.Builder.Bcf30;
namespace BcfConverter.Builder.Bcf30;

public interface IMarkupBuilderExtension<out TBuilder> {
TBuilder AddServerAssignedId(string id);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace bcf.Builder.Bcf30;
namespace BcfConverter.Builder.Bcf30;

public interface IOrthogonalCameraBuilderExtension<out TBuilder> {
TBuilder AddAspectRatio(double ratio);
Expand Down
Loading

0 comments on commit 7aa1914

Please sign in to comment.