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.

77 lines
3.1 KiB

  1. /* /////////////////////////////////////////////////////////////////////////
  2. * File: test/scratch/test.scratch.WideString/test.scratch.WideString.cpp
  3. *
  4. * Purpose: Implementation file for the test.scratch.WideString project.
  5. *
  6. * Created: 22nd March 2010
  7. * Updated: 10th January 2011
  8. *
  9. * Status: Wizard-generated
  10. *
  11. * License: (Licensed under the Synesis Software Open License)
  12. *
  13. * Copyright (c) 2010-2011, Synesis Software Pty Ltd.
  14. * All rights reserved.
  15. *
  16. * www: http://www.synesis.com.au/software
  17. *
  18. * ////////////////////////////////////////////////////////////////////// */
  19. /* /////////////////////////////////////////////////////////////////////////
  20. * Includes
  21. */
  22. #include <pantheios/pantheios.hpp>
  23. #include <pantheios/inserters/args.hpp>
  24. #include <pantheios/inserters/b64.hpp>
  25. #include <pantheios/inserters/blob.hpp>
  26. #include <pantheios/inserters/hex_ptr.hpp>
  27. #include <pantheios/inserters/integer.hpp>
  28. #include <pantheios/inserters/pointer.hpp>
  29. #include <pantheios/inserters/processid.hpp>
  30. #include <pantheios/inserters/real.hpp>
  31. #include <pantheios/inserters/slice.hpp>
  32. #include <pantheios/inserters/threadid.hpp>
  33. #include <pantheios/frontends/stock.h>
  34. #include <stdlib.h>
  35. #include <tchar.h>
  36. /* /////////////////////////////////////////////////////////////////////////
  37. * Globals
  38. */
  39. extern "C" PAN_CHAR_T const PANTHEIOS_FE_PROCESS_IDENTITY[] = PANTHEIOS_LITERAL_STRING("test.scratch.WideString");
  40. /* /////////////////////////////////////////////////////////////////////////
  41. * main()
  42. */
  43. int _tmain(int argc, _TCHAR* argv[])
  44. {
  45. pantheios::log(pantheios::debug, PANTHEIOS_LITERAL_STRING("main(argc/v={"), pantheios::args(argc, argv), PANTHEIOS_LITERAL_STRING("})"));
  46. pantheios::log(pantheios::debug, PANTHEIOS_LITERAL_STRING("b64: {"), pantheios::b64("abcd", 5), PANTHEIOS_LITERAL_STRING("}"));
  47. pantheios::log(pantheios::debug, PANTHEIOS_LITERAL_STRING("i: {"), pantheios::integer(-10101, 4, pantheios::fmt::fullHex), PANTHEIOS_LITERAL_STRING("}"));
  48. pantheios::log(pantheios::debug, PANTHEIOS_LITERAL_STRING("xp: {"), pantheios::hex_ptr("abcd"), PANTHEIOS_LITERAL_STRING("}"));
  49. pantheios::log(pantheios::debug, PANTHEIOS_LITERAL_STRING("real: {"), pantheios::real(-1.2345), PANTHEIOS_LITERAL_STRING("}"));
  50. pantheios::log(pantheios::debug, PANTHEIOS_LITERAL_STRING("process-id: {"), pantheios::processId, PANTHEIOS_LITERAL_STRING("}"));
  51. pantheios::log(pantheios::debug, PANTHEIOS_LITERAL_STRING("thread-id: {"), pantheios::threadId, PANTHEIOS_LITERAL_STRING("}"));
  52. pantheios::log(pantheios::debug, PANTHEIOS_LITERAL_STRING("blob: {"), pantheios::blob("abcd", 5), PANTHEIOS_LITERAL_STRING("}"));
  53. pantheios::log(pantheios::debug, PANTHEIOS_LITERAL_STRING("pointer: {"), pantheios::pointer("abcd", pantheios::fmt::fullHex), PANTHEIOS_LITERAL_STRING("}"));
  54. pantheios::log(pantheios::debug, PANTHEIOS_LITERAL_STRING("slice: {"), pantheios::slice(PANTHEIOS_LITERAL_STRING("abcd"), 3), PANTHEIOS_LITERAL_STRING("}"));
  55. return 0;
  56. }
  57. /* ///////////////////////////// end of file //////////////////////////// */