Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

Retrieve all build messages

(1/4) > >>

threeS:
Good day to all!

I am now doing a plugin that connects to the database every time the codeblocks compiles(thanks to you all for the previous questions). Using the code below:

Manager::Get()->RegisterEventSink(cbEVT_COMPILER_STARTED, new cbEventFunctor<PluginName,CodeBlocksEvent>(this,&PluginName::OnCompileStart));
Manager::Get()->RegisterEventSink(cbEVT_COMPILER_STARTED, new cbEventFunctor<PluginName,CodeBlocksEvent>(this,&PluginName::OnCompileEnd));

Now I want to get all the messages generated in the "Build messages" tab can you help me in this problem guys?

CodeBlocks Build Number: 9851
OS: Ubuntu 14.04 64 bit

Thanks in advance!  ;D

Alpha:
I recommend digging around in C::B for the relevant API calls.  The following files should be a good starting place:
include/logmanager.h
include/logger.h
include/loggers.h
plugins/compilergcc/compilermessages.h

threeS:
I've been digging the codes that you suggested but I realized that it becomes a little bit tricky I guess when it comes to how will I get the instance of the Logger/Loggers/CompilerMessages classes that the compiler class uses when compiling, because if I will create a new instance then it is useless I guess.

 ??? ::)

stahta01:
No idea; but, maybe looking at the code the saves the Build log as HTML would be an option.

Tim S.

Alpha:
Hmm, yes, API does not look too friendly for this.  You could try LogManager->Slot(int i)->[title: check name; GetLogger()]->typecastAndHope.

Navigation

[0] Message Index

[#] Next page

Go to full version