Nebula
Loading...
Searching...
No Matches
coreserver.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
15#include "core/ptr.h"
16#include "core/refcounted.h"
17#include "core/singleton.h"
18#include "io/console.h"
19#include "util/stringatom.h"
20
21//------------------------------------------------------------------------------
22namespace Core
23{
68
69//------------------------------------------------------------------------------
70/*
71*/
72inline bool
74{
75 return this->isOpen;
76}
77
78//------------------------------------------------------------------------------
79/*
80*/
81inline void
86
87//------------------------------------------------------------------------------
88/*
89*/
90inline const Util::StringAtom&
92{
93 return this->companyName;
94}
95
96//------------------------------------------------------------------------------
97/*
98*/
99inline void
101{
102 this->appName = s;
103}
104
105//------------------------------------------------------------------------------
106/*
107*/
108inline const Util::StringAtom&
110{
111 return this->appName;
112}
113
114//------------------------------------------------------------------------------
115/*
116*/
117inline void
122
123//------------------------------------------------------------------------------
124/*
125*/
126inline const Util::StringAtom&
128{
129 return this->rootDirectory;
130}
131
132//------------------------------------------------------------------------------
133/*
134*/
135inline void
140
141//------------------------------------------------------------------------------
142/*
143*/
144inline const Util::StringAtom&
146{
147 return this->toolDirectory;
148}
149
150} // namespace Core
151//------------------------------------------------------------------------------
The central core server object initializes a minimal Nebula runtime environment necessary to boot up ...
Definition coreserver.h:25
void SetToolDirectory(const Util::StringAtom &s)
set the tools directory ("tool:")
Definition coreserver.h:136
void Open()
open the core server
Definition coreserver.cc:46
Ptr< IO::Console > con
Definition coreserver.h:61
__DeclareClass(CoreServer)
const Util::StringAtom & GetRootDirectory() const
get the root directory of the application
Definition coreserver.h:127
void Trigger()
trigger core server, updates console
Definition coreserver.cc:74
Util::StringAtom rootDirectory
Definition coreserver.h:64
bool IsOpen() const
return true if currently open
Definition coreserver.h:73
void SetRootDirectory(const Util::StringAtom &s)
set the root directory of the application (default is "home:")
Definition coreserver.h:118
__DeclareSingleton(CoreServer)
void Close()
close the core server
Definition coreserver.cc:60
const Util::StringAtom & GetToolDirectory() const
get the tools directory
Definition coreserver.h:145
void SetCompanyName(const Util::StringAtom &s)
set the company name
Definition coreserver.h:82
const Util::StringAtom & GetAppName() const
get the application name
Definition coreserver.h:109
const Util::StringAtom & GetCompanyName() const
get the company name
Definition coreserver.h:91
virtual ~CoreServer()
destructor
Definition coreserver.cc:33
CoreServer()
constructor
Definition coreserver.cc:20
Util::StringAtom appName
Definition coreserver.h:63
Util::StringAtom companyName
Definition coreserver.h:62
bool isOpen
Definition coreserver.h:66
void SetAppName(const Util::StringAtom &s)
set the application name
Definition coreserver.h:100
Util::StringAtom toolDirectory
Definition coreserver.h:65
The common base class of Nebula.
Definition refcounted.h:38
Nebula's smart pointer class which manages the life time of RefCounted objects.
Definition ptr.h:38
A StringAtom.
Definition stringatom.h:22
Definition coreserver.cc:11