Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Coffee corner » Architectural and C++/Upp questions
Re: Architectural and C++/Upp questions [message #54952 is a reply to message #54939] Thu, 01 October 2020 11:43 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14265
Registered: November 2005
Ultimate Member
Xemuth wrote on Tue, 29 September 2020 20:07
Hello Mirek,

Thanks for the sharing of your knowledge !
Quote:
That said, Service concept itself feels bit like overengineering. Do you really need that level of abstraction? Cannot you just have RenderOpenGL class or something?


I want service to be external to this the codebase of my project. By example my OpenGL service can be seen as kind of plugin (UFEplugin/RendererOpenGLService) which can be included by the developper to extends possibility of my project. (I plan in further to do some plugin to include Assimp or to support Vulkan rendering, Audio engine etc...) I think the best way to perform this is to give an Interface (here Service class) to user and allow him to write is own service/ component (component is part of game object and it's also an abstract class)


I would probably need to know more. I am just saying that I woudl triple-check whether existence of Context

ufeContext.GetService("RendererOpenGLService")

is really necessarry...

Quote:
Set resetable error flag. Maybe add Event<> WhenError so that client code can throw the exception if it needs to.
do Upp have a place where an event is used to handle Error ?
[/quote]

SqlSession. It really is not Event but installable function pointer (that code is now like 20 years old Smile, but the principle is the same.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: some U++ stuff on reddit/cpp_question
Next Topic: About Nuller and Null
Goto Forum:
  


Current Time: Tue Jul 15 21:17:28 CEST 2025

Total time taken to generate the page: 0.03958 seconds