You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

141 lines
2.9 KiB

  1. /* /////////////////////////////////////////////////////////////////////////
  2. * File: test/scratch/test.scratch.fe.WindowsRegistry.controller/test.scratch.fe.WindowsRegistry.controller.cpp
  3. *
  4. * Purpose: Implementation file for the test.scratch.fe.WindowsRegistry.controller project.
  5. *
  6. * Created: 2nd December 2007
  7. * Updated: 19th December 2008
  8. *
  9. * Status: Wizard-generated
  10. *
  11. * License: (Licensed under the Synesis Software Open License)
  12. *
  13. * Copyright (c) 2007-2008, Synesis Software Pty Ltd.
  14. * All rights reserved.
  15. *
  16. * www: http://www.synesis.com.au/software
  17. *
  18. * ////////////////////////////////////////////////////////////////////// */
  19. #define PANTHEIOS_NO_INCLUDE_OS_AND_3PTYLIB_STRING_ACCESS
  20. /* STLSoft Header Files */
  21. #include <stlsoft/stlsoft.h>
  22. /* PlatformSTL Header Files */
  23. #include <platformstl/platformstl.hpp>
  24. /* Standard C++ Header Files */
  25. #include <exception>
  26. #if 0
  27. #include <algorithm>
  28. #include <iterator>
  29. #include <list>
  30. #include <string>
  31. #include <vector>
  32. #endif /* 0 */
  33. /* Standard C Header Files */
  34. #include <stdio.h>
  35. #include <stdlib.h>
  36. #if defined(_MSC_VER) && \
  37. defined(_DEBUG)
  38. # include <crtdbg.h>
  39. #endif /* _MSC_VER) && _DEBUG */
  40. /* /////////////////////////////////////////////////////////////////////////
  41. * Typedefs
  42. */
  43. namespace pantheios
  44. {
  45. namespace control
  46. {
  47. namespace fe
  48. {
  49. class WindowsRegistryController
  50. {
  51. public:
  52. typedef WindowsRegistryController class_type;
  53. public:
  54. explicit WindowsRegistryController(char const *)
  55. {
  56. }
  57. };
  58. } // namespace fe
  59. } // namespace control
  60. } // namespace pantheios
  61. /* ////////////////////////////////////////////////////////////////////// */
  62. static int main_(int argc, char** argv)
  63. {
  64. int bVerbose = true;
  65. { for(int i = 1; i < argc; ++i)
  66. {
  67. char const* const arg = argv[i];
  68. if(arg[0] == '-')
  69. {
  70. }
  71. else
  72. {
  73. }
  74. }}
  75. /* . */
  76. // pantheios::control::fe::WindowsRegistryController::;
  77. return EXIT_SUCCESS;
  78. }
  79. int main(int argc, char** argv)
  80. {
  81. int res;
  82. #if defined(_MSC_VER) && \
  83. defined(_DEBUG)
  84. _CrtMemState memState;
  85. #endif /* _MSC_VER && _MSC_VER */
  86. #if defined(_MSC_VER) && \
  87. defined(_DEBUG)
  88. _CrtMemCheckpoint(&memState);
  89. #endif /* _MSC_VER && _MSC_VER */
  90. try
  91. {
  92. res = main_(argc, argv);
  93. }
  94. catch(std::exception &x)
  95. {
  96. fprintf(stderr, "Unhandled error: %s\n", x.what());
  97. res = EXIT_FAILURE;
  98. }
  99. catch(...)
  100. {
  101. fprintf(stderr, "Unhandled unknown error\n");
  102. res = EXIT_FAILURE;
  103. }
  104. #if defined(_MSC_VER) && \
  105. defined(_DEBUG)
  106. _CrtMemDumpAllObjectsSince(&memState);
  107. #endif /* _MSC_VER) && _DEBUG */
  108. return res;
  109. }
  110. /* ////////////////////////////////////////////////////////////////////// */