Phase 06 complete: - Namespace renamed in 62 .cs files (namespace + using directives) - AssemblyName + RootNamespace updated in csproj files - FanucProgramManager.csproj → NcProgramManager.csproj - FanucProgramManager.sln → NcProgramManager.sln - FanucProgramManager.Tests/ → NcProgramManager.Tests/ - FANUCMachine.cs deleted (dead code, zero references) Fanuc-prefixed class names kept (FanucMachine, FanucProgram, IFanucMachine) — manufacturer identifiers, not project names. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
21 lines
666 B
C#
Executable file
21 lines
666 B
C#
Executable file
using System;
|
|
|
|
namespace NcProgramManager.Cnc.Fanuc
|
|
{
|
|
internal static class FocasDialectFactory
|
|
{
|
|
public static IFocasDialect Create(FanucCapabilities caps)
|
|
{
|
|
if (caps == null) return new LegacyFocasDialect();
|
|
switch (caps.Dialect)
|
|
{
|
|
case FanucDialect.Modern: return new ModernFocasDialect();
|
|
case FanucDialect.Legacy:
|
|
case FanucDialect.Unknown:
|
|
return new LegacyFocasDialect();
|
|
default:
|
|
throw new InvalidOperationException("Unsupported FanucDialect: " + caps.Dialect);
|
|
}
|
|
}
|
|
}
|
|
}
|