Nebula
Toggle main menu visibility
Loading...
Searching...
No Matches
interfacehandlerbase.h
Go to the documentation of this file.
1
#pragma once
2
//------------------------------------------------------------------------------
12
#include "
messaging/handler.h
"
13
#include "
util/stringatom.h
"
14
15
//------------------------------------------------------------------------------
16
namespace
Interface
17
{
18
class
InterfaceHandlerBase
:
public
Messaging::Handler
19
{
20
__DeclareClass
(
InterfaceHandlerBase
);
21
public
:
23
InterfaceHandlerBase
();
25
void
SetCompanyName
(
const
Util::StringAtom
&
companyName
);
27
const
Util::StringAtom
&
GetCompanyName
()
const
;
29
void
SetAppName
(
const
Util::StringAtom
&
appName
);
31
const
Util::StringAtom
&
GetAppName
()
const
;
33
virtual
void
DoWork
();
34
35
protected
:
36
Util::StringAtom
companyName
;
37
Util::StringAtom
appName
;
38
};
39
40
//------------------------------------------------------------------------------
43
inline
void
44
InterfaceHandlerBase::SetCompanyName
(
const
Util::StringAtom
& n)
45
{
46
this->
companyName
= n;
47
}
48
49
//------------------------------------------------------------------------------
52
inline
const
Util::StringAtom
&
53
InterfaceHandlerBase::GetCompanyName
()
const
54
{
55
return
this->
companyName
;
56
}
57
58
//------------------------------------------------------------------------------
61
inline
void
62
InterfaceHandlerBase::SetAppName
(
const
Util::StringAtom
& n)
63
{
64
this->
appName
= n;
65
}
66
67
//------------------------------------------------------------------------------
70
inline
const
Util::StringAtom
&
71
InterfaceHandlerBase::GetAppName
()
const
72
{
73
return
this->
appName
;
74
}
75
76
}
// namespace Interface
77
//------------------------------------------------------------------------------
Interface::InterfaceHandlerBase::GetAppName
const Util::StringAtom & GetAppName() const
get the application name
Definition
interfacehandlerbase.h:71
Interface::InterfaceHandlerBase::companyName
Util::StringAtom companyName
Definition
interfacehandlerbase.h:36
Interface::InterfaceHandlerBase::SetCompanyName
void SetCompanyName(const Util::StringAtom &companyName)
set the company name
Definition
interfacehandlerbase.h:44
Interface::InterfaceHandlerBase::appName
Util::StringAtom appName
Definition
interfacehandlerbase.h:37
Interface::InterfaceHandlerBase::SetAppName
void SetAppName(const Util::StringAtom &appName)
set the application name
Definition
interfacehandlerbase.h:62
Interface::InterfaceHandlerBase::InterfaceHandlerBase
InterfaceHandlerBase()
constructor
Definition
interfacehandlerbase.cc:16
Interface::InterfaceHandlerBase::GetCompanyName
const Util::StringAtom & GetCompanyName() const
get the company name
Definition
interfacehandlerbase.h:53
Interface::InterfaceHandlerBase::DoWork
virtual void DoWork()
optional "per-frame" DoWork method for continuous handlers
Definition
interfacehandlerbase.cc:25
Interface::InterfaceHandlerBase::__DeclareClass
__DeclareClass(InterfaceHandlerBase)
Messaging::Handler
Message handlers are used to process a message.
Definition
handler.h:20
Util::StringAtom
A StringAtom.
Definition
stringatom.h:22
handler.h
Interface
Definition
interfacebase.cc:12
stringatom.h
code
foundation
interface
interfacehandlerbase.h
Generated on
for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.