Process_VX.cpp 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. //
  2. // Process_VX.cpp
  3. //
  4. // $Id: //poco/1.4/Foundation/src/Process_VX.cpp#3 $
  5. //
  6. // Library: Foundation
  7. // Package: Processes
  8. // Module: Process
  9. //
  10. // Copyright (c) 2004-2011, Applied Informatics Software Engineering GmbH.
  11. // and Contributors.
  12. //
  13. // SPDX-License-Identifier: BSL-1.0
  14. //
  15. #include "Poco/Process_VX.h"
  16. #include "Poco/Exception.h"
  17. namespace Poco {
  18. //
  19. // ProcessHandleImpl
  20. //
  21. ProcessHandleImpl::ProcessHandleImpl(int pid):
  22. _pid(pid)
  23. {
  24. }
  25. ProcessHandleImpl::~ProcessHandleImpl()
  26. {
  27. }
  28. int ProcessHandleImpl::id() const
  29. {
  30. return _pid;
  31. }
  32. int ProcessHandleImpl::wait() const
  33. {
  34. throw Poco::NotImplementedException("Process::wait()");
  35. }
  36. //
  37. // ProcessImpl
  38. //
  39. ProcessImpl::PIDImpl ProcessImpl::idImpl()
  40. {
  41. return 0;
  42. }
  43. void ProcessImpl::timesImpl(long& userTime, long& kernelTime)
  44. {
  45. userTime = 0;
  46. kernelTime = 0;
  47. }
  48. ProcessHandleImpl* ProcessImpl::launchImpl(const std::string& command, const ArgsImpl& args, const std::string& initialDirectory,Pipe* inPipe, Pipe* outPipe, Pipe* errPipe, const EnvImpl& env)
  49. {
  50. throw Poco::NotImplementedException("Process::launch()");
  51. }
  52. void ProcessImpl::killImpl(ProcessHandleImpl& handle)
  53. {
  54. throw Poco::NotImplementedException("Process::kill()");
  55. }
  56. void ProcessImpl::killImpl(PIDImpl pid)
  57. {
  58. throw Poco::NotImplementedException("Process::kill()");
  59. }
  60. bool ProcessImpl::isRunningImpl(const ProcessHandleImpl& handle)
  61. {
  62. throw Poco::NotImplementedException("Process::is_running()");
  63. }
  64. bool ProcessImpl::isRunningImpl(PIDImpl pid)
  65. {
  66. throw Poco::NotImplementedException("Process::is_running()");
  67. }
  68. void ProcessImpl::requestTerminationImpl(PIDImpl pid)
  69. {
  70. throw Poco::NotImplementedException("Process::requestTermination()");
  71. }
  72. } // namespace Poco