01//********************************************************************************
02//* File       : TestFile.cpp                                                    *
03//* Date       : 04-Jan-2026                                                     *
04//* Description: This file is opened for edit during AcEdit startup.             *
05//*              The functionality tested includes:                              *
06//*              1) Open file for edit.                                          *
07//*                 a) verify targets                                            *
08//*                 b) copy source to target                                     *
09//*                 c) copy backup to textbox and initialize auxilliary fields   *
10//*              2) Write field text to backup file.                             *
11//*                 a) auto save                                                 *
12//*                 b) explicit save                                             *
13//*              3) Copy backup file to source file.                             *
14//*                                                                              *
15//*                                                                              *
16//********************************************************************************
17
18//****************
19//* Header Files *
20//****************
21#ifndef ACEDIT_DEFINED
22#define ACEDIT_DEFINED        //* Be sure file is included only once
23
24using namespace std ;         //* C++ Scope quailfier
25#include <fstream>            //* File I/O streams
26#include "gString.hpp"        //* gString class definition
27#include "AnsiCmd.hpp"        //* AnsiCmd class definition
28#include "AnsiCmdWin.hpp"     //* ACWin class definition
29#include "AcEditFile.hpp"     //* File management definitions
30
31//***************
32//* Definitions *
33//***************
34
35//***************
36//* Prototypes  *
37//***************
38static wchar_t AnimalCrackers ( short ctrlIndx, wchar_t wkey ) ;
39static time_t  LocalTime ( bool set = false ) ;
40static time_t  BigBenGMT ( const gString& gsVer ) ;
41
42//*************************
43//*        main           *
44//*************************
45//********************************************************************************
46//* Program entry point.                                                         *
47//*                                                                              *
48//********************************************************************************
49
50int main ( int argc, char* argv[], char* argenv[] )
51{
52   //* For capture and parsing of command-line arguments *
53   commArgs ca( argc, argv, argenv ) ;
54
55   exit ZERO ;
56
57}  //* End main() *