Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: AZ on April 15, 2016, 08:37:36 am

Title: How to explore library
Post by: AZ on April 15, 2016, 08:37:36 am
Hello,
 how do i explore library? is there a way to open a library code in CB or i have to find the files on OS level and just "more" them ?

in other words, i used to be able to "right click " on the name of the library and it would load it into IDE ( Borland Delphi). Does the functionality like this exists in CB/C++ world ?
Title: Re: How to explore library
Post by: oBFusCATed on April 15, 2016, 09:04:34 pm
What do you mean by library?

p.s. to answer you question either use the file manager plugin or create an empty project and add all library files in this project
Title: Re: How to explore library
Post by: AZ on April 15, 2016, 09:22:24 pm
What do you mean by library?

p.s. to answer you question either use the file manager plugin or create an empty project and add all library files in this project
Example:
Code
#include <iostream>
#include <string>

using namespace std ;
int main()
     {

    cout << "Please enter your name:";
    std::string name;
    std::cin >> name ;
    string greeting = "Hello world, my name is " + name + "!" ;
    std::cout << greeting << std::endl ;
    const string spaces(greeting.size(),' ');
    const string out_ = '*' + spaces + '*';

    std::cout << out_ << std::endl;

    return 0;

}
so what i want to find out is what the <string> "library" provides - what datatypes, functions etc.
Title: Re: How to explore library
Post by: BlueHazzard on April 15, 2016, 09:56:48 pm
i don't know any offline documentation of c++. And c::B also does not provide such a feature (at least what i know. there is a help plugin, but i really don't know what it does)
If you use a external library you can try the "right click->got to deceleration". If the library implements a doxygen documentation you can read it in the header. Also there should pop up reference window on code completion (but the library has to provide it. The std does not)
If you need a cpp reference you can look at this two sites:
http://www.cplusplus.com/reference/
http://en.cppreference.com/w/

greetings
Title: Re: How to explore library
Post by: AZ on April 16, 2016, 06:30:41 pm
i don't know any offline documentation of c++. And c::B also does not provide such a feature (at least what i know. there is a help plugin, but i really don't know what it does)
If you use a external library you can try the "right click->got to deceleration". If the library implements a doxygen documentation you can read it in the header. Also there should pop up reference window on code completion (but the library has to provide it. The std does not)
If you need a cpp reference you can look at this two sites:
http://www.cplusplus.com/reference/
http://en.cppreference.com/w/

greetings

thank you !
Title: Re: How to explore library
Post by: scarphin on April 17, 2016, 04:13:00 am
There is an open source offline documentation browser called Zeal:
https://zealdocs.org/ (https://zealdocs.org/)
It can be configured to work with CB quite easily. I've made a post in their Github issue tracker how to do that, search for my nick in their issue tracker to find how. It works by keywords though, not right mouse clicks or other fancy stuff. I improved CB's help plugin to also work with the mouse and/or give me a list of 'docsets' to search so it's much more usable for me though.
Title: Re: How to explore library
Post by: AZ on April 21, 2016, 05:13:43 pm
There is an open source offline documentation browser called Zeal:
https://zealdocs.org/ (https://zealdocs.org/)
It can be configured to work with CB quite easily. I've made a post in their Github issue tracker how to do that, search for my nick in their issue tracker to find how. It works by keywords though, not right mouse clicks or other fancy stuff. I improved CB's help plugin to also work with the mouse and/or give me a list of 'docsets' to search so it's much more usable for me though.

this is great. Thank you scarphin.
I'll take a liberty to link https://github.com/zealdocs/zeal/issues/336 (https://github.com/zealdocs/zeal/issues/336)
Title: Re: How to explore library
Post by: scarphin on April 22, 2016, 12:55:49 pm
That's the link, sorry for not providing this myself since I don't have much spare time recently.
Title: Re: How to explore library
Post by: AZ on April 23, 2016, 12:13:26 am
That's the link, sorry for not providing this myself since I don't have much spare time recently.

BTW, i noticed that (at least in Apr 13 build of CB) i had to put "/path/to/zeal $(keyword)"; whereas "TIP" states "$$(keyword)". just a heads up.