using System;
using System.Runtime.InteropServices;
namespace logging
{
class Program
{
[DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
static extern bool SetDllDirectory(string lpPathName);
static int Main(string[] args)
{
SetDllDirectory("../../../../../../win64/vc14.1/bin");
Environment.SetEnvironmentVariable("CADEX_DEBUG", "1");
string aKey = LicenseKey.Value();
if (!LicenseManager.Activate(aKey))
{
Console.WriteLine("Failed to activate CAD Exchanger license.");
return 1;
}
if (args.Length != 1)
{
Console.WriteLine("Usage: " + System.Reflection.Assembly.GetExecutingAssembly().Location
+ " <input_file>, where:");
Console.WriteLine(" <input_file> is a name of the SAT file to be read");
return 1;
}
string aSource = args[0];
{
Console.WriteLine("Failed to open and convert the file " + aSource);
return 1;
}
return 0;
}
}
}
Provides logging messages in the file.
Definition: Base_LoggerFileAppender.hxx:27
Provides a logger that accepts and dispatches logging messages.
Definition: Base_Logger.hxx:35
Level
Defines a message severity level.
Definition: Base_Logger.hxx:38
void Register(Base_LoggerAppender &theAppender, const Level theMinLevel=Trace, const Level theMaxLevel=Fatal)
Adds an appender to the logger.
Definition: Base_Logger.cxx:210
static Base_Logger & GlobalInstance()
Returns a global logger.
Definition: Base_Logger.cxx:171
void SetLevel(const Level theLevel)
Sets message severity level.
Definition: Base_Logger.cxx:180
Defines a Unicode (UTF-16) string wrapping a standard string.
Definition: Base_UTF16String.hxx:34
Provides CAD Exchanger data model.
Definition: ModelData_Model.hxx:43
Reads any format that CAD Exchanger can import.
Definition: ModelData_ModelReader.hxx:33
bool Read(const Base_UTF16String &theFilePath, ModelData_Model &theModel)
Reads the file at the specified path into the specified model.
Definition: ModelData_ModelReader.cxx:182
Defines classes, types, and global functions related to CAD Exchanger.
Definition: A3DSTestLib.hxx:22