VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfPrintConsoleCommands.h
Go to the documentation of this file.
1 #pragma once
2 
5 
7 
9 {
10 public:
13  {
14  }
15  virtual ~DtNotifyLevelCommand() override { };
16  virtual bool execute(const DtString& parameters) override;
17 
18  virtual DtString help(const DtString& parameters) override
19  {
20  return "Sets the notify level, 'notify [channel] level'";
21  };
22 
23  virtual bool showInHelp() const override { return true; };
24 };
25 
27 {
28 public:
29  DtEchoCommand(int notifyLevel)
31  , myNotifyLevel(notifyLevel)
32  {
33  }
34 
35  virtual ~DtEchoCommand() override { };
36 
37  virtual bool execute(const DtString& parameters) override;
38 
39  virtual DtString help(const DtString& parameters) override {
40  return "Echoes text, optionally using channels.";
41  };
42 
43  virtual bool showInHelp() const override { return true; };
44 
45  virtual void setNotifyLevel(int nl)
46  {
47  myNotifyLevel = nl;
48  }
49 
50 protected:
52 };
53 
55 {
56 public:
59  , mySimulationServices(objMgr)
60  {
61  }
62 
63  virtual ~DtObjectConsoleLevelCommand() override { };
64  virtual bool execute(const DtString& parameters) override;
65 
66  virtual DtString help(const DtString& parameters) override {
67  return "Sets the object console level for an entity.";
68  }
69 
70  virtual bool showInHelp() const override { return true; };
71 
72 protected:
73  DtSimulationServices* mySimulationServices;
74 };
75 
77 {
78 public:
81  , mySimulationServices(objMgr)
82  , myNotifyLevel(notifyLevel)
83  {
84  }
85 
86  virtual ~DtObjectConsoleEchoCommand() override { };
87  virtual bool execute(const DtString& parameters) override;
88 
89  virtual DtString help(const DtString& parameters) override {
90  return "Echo command for an entity's object console.";
91  }
92 
93  virtual bool showInHelp() const override { return true; };
94 
95 protected:
96  DtSimulationServices* mySimulationServices;
98 };
DtEchoCommand(int notifyLevel)
Definition: vrfPrintConsoleCommands.h:29
Definition: vrfPrintConsoleCommands.h:26
virtual void setNotifyLevel(int nl)
Definition: vrfPrintConsoleCommands.h:45
virtual DtString help(const DtString &parameters) override
Definition: vrfPrintConsoleCommands.h:18
virtual DtString help(const DtString &parameters) override
Definition: vrfPrintConsoleCommands.h:39
DtObjectConsoleLevelCommand(DtSimulationServices *objMgr)
Definition: vrfPrintConsoleCommands.h:57
virtual bool showInHelp() const override
Definition: vrfPrintConsoleCommands.h:93
Definition: vrfPrintConsoleCommands.h:8
virtual bool showInHelp() const override
Definition: vrfPrintConsoleCommands.h:43
int myNotifyLevel
Definition: vrfPrintConsoleCommands.h:97
virtual ~DtNotifyLevelCommand() override
Definition: vrfPrintConsoleCommands.h:15
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
virtual ~DtObjectConsoleLevelCommand() override
Definition: vrfPrintConsoleCommands.h:63
virtual bool showInHelp() const override
Definition: vrfPrintConsoleCommands.h:23
DtObjectConsoleEchoCommand(DtSimulationServices *objMgr, int notifyLevel)
Definition: vrfPrintConsoleCommands.h:79
virtual ~DtEchoCommand() override
Definition: vrfPrintConsoleCommands.h:35
system includes
Definition: consoleCommandManager.h:28
virtual ~DtObjectConsoleEchoCommand() override
Definition: vrfPrintConsoleCommands.h:86
virtual DtString help(const DtString &parameters) override
Definition: vrfPrintConsoleCommands.h:89
DtNotifyLevelCommand()
Definition: vrfPrintConsoleCommands.h:11
int myNotifyLevel
Definition: vrfPrintConsoleCommands.h:51
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:96
Definition: vrfPrintConsoleCommands.h:54
Definition: vrfPrintConsoleCommands.h:76
virtual DtString help(const DtString &parameters) override
Definition: vrfPrintConsoleCommands.h:66
virtual bool showInHelp() const override
Definition: vrfPrintConsoleCommands.h:70
virtual bool execute(const DtString &parameters)=0
Execute the command.

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)