Advertisement
Guest User

Untitled

a guest
Aug 29th, 2021
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #pragma once
  2.  
  3. #include "CommandInterface.h"
  4.  
  5. std::shared_ptr<CommandInterface> buildCommandInterface(std::string& text) {
  6.  
  7. CommandInterface interface(text);
  8.  
  9. interface.init();
  10.  
  11. auto ptr = std::make_shared<CommandInterface>(interface);
  12.  
  13. return ptr;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement