public ToLineFunction() { random = new Random(42); point = new ReadonlyPoint3D( randomFloat(), randomFloat(), randomFloat() ); emfWithReadonlyLoggingModel = new EMFPackageWithReadonlyLoggingModel( randomFloat(), randomFloat(), randomFloat(), randomFloat(), randomFloat(), randomFloat(), randomFloat(), (byte)random.Next(0, 255), (byte)random.Next(0, 255) ); emfWithMutableLoggingModel = new EMFPackageWithMutableLoggingModel( randomFloat(), randomFloat(), randomFloat(), randomFloat(), randomFloat(), randomFloat(), randomFloat(), (byte)random.Next(0, 255), (byte)random.Next(0, 255) ); emfPackage = new EMFPackage( randomFloat(), randomFloat(), randomFloat(), randomFloat(), randomFloat(), randomFloat(), randomFloat(), (byte)random.Next(0, 255), (byte)random.Next(0, 255) ); emf_imu_metaPackage = new EMF_IMU_MetaPackage( emf: emfPackage, imu: new IMUPackage( (short)random.Next(0, 30_000), (short)random.Next(0, 30_000), (short)random.Next(0, 30_000), (short)random.Next(0, 30_000), (short)random.Next(0, 30_000), (short)random.Next(0, 30_000) ), 0, 0, 0, 0, 0 );; }
public void Test() { var emf = new EMFPackage(1, 2, 3, 4, 5, 6, 7, 8, 9); var imu = new IMUPackage(10, 11, 12, 13, 14, 15); var package = new EMF_IMU_MetaPackage(emf, imu, 0, 0, 0, 1, 34); var config = new CsvConfig(';'); Console.WriteLine( CsvFunctions .ToHeader( type: typeof(EMF_IMU_MetaPackage), config: config ) );; Console.WriteLine( CsvFunctions .ToLine( baseObject: package, config: new CsvConfig(';') ) ); }