singleton_test_class1.cpp 639 B

123456789101112131415161718192021222324252627282930313233343536
  1. #include "singleton_test_class1.h"
  2. #include "wsClientMgr.h"
  3. #include <iostream>
  4. singleton_test_class1::singleton_test_class1()
  5. {
  6. }
  7. singleton_test_class1::~singleton_test_class1()
  8. {
  9. }
  10. void singleton_test_class1::DoSome()
  11. {
  12. std::cout << "-- singleton_test_class1::DoSome() --" << std::endl;
  13. if ( swsClientMgr.IsConnected() )
  14. {
  15. std::cout << "swsClientMgr Is Connected!" << std::endl;
  16. }
  17. else
  18. {
  19. std::cout << "swsClientMgr Is not Connected!" << std::endl;
  20. }
  21. if ( swsClientMgr.IsLogined() )
  22. {
  23. std::cout << "swsClientMgr Is Logined!" << std::endl;
  24. }
  25. else
  26. {
  27. std::cout << "swsClientMgr Is not Logined!" << std::endl;
  28. }
  29. }