fork download
  1. #ifndef EMPLOYEE_FACTORY_H
  2. #define EMPLOYEE_FACTORY_H
  3.  
  4. #include <QSharedPointer>
  5.  
  6. class AbstractEmployee;
  7. class EmployeeRecord;
  8.  
  9.  
  10. class IEmployeeFactory
  11. {
  12. public:
  13. virtual QSharedPointer<AbstractEmployee> makeEmployee(EmployeeRecord const& rec) = 0;
  14. };
  15.  
  16. class EmployeeFactory : public IEmployeeFactory
  17. {
  18. enum POSITION
  19. {
  20. EMPLOYEE = 1, MANAGER, SALES
  21. };
  22. public:
  23. QSharedPointer<AbstractEmployee> makeEmployee(EmployeeRecord const& rec) override;
  24. };
  25.  
  26. #endif
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:4:26: fatal error: QSharedPointer: No such file or directory
 #include <QSharedPointer>
                          ^
compilation terminated.
stdout
Standard output is empty