News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

How to explore library

Started by AZ, April 15, 2016, 08:37:36 AM

Previous topic - Next topic

AZ

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 ?
CB: nightly build .
Thread model: posix
gcc version 5.1.1 20150618 (Red Hat 5.1.1-4) (GCC)

oBFusCATed

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
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

AZ

Quote from: 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
Example:

#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.
CB: nightly build .
Thread model: posix
gcc version 5.1.1 20150618 (Red Hat 5.1.1-4) (GCC)

BlueHazzard

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

AZ

Quote from: 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

thank you !
CB: nightly build .
Thread model: posix
gcc version 5.1.1 20150618 (Red Hat 5.1.1-4) (GCC)

scarphin

There is an open source offline documentation browser called Zeal:
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.

AZ

#6
Quote from: scarphin on April 17, 2016, 04:13:00 AM
There is an open source offline documentation browser called Zeal:
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
CB: nightly build .
Thread model: posix
gcc version 5.1.1 20150618 (Red Hat 5.1.1-4) (GCC)

scarphin

That's the link, sorry for not providing this myself since I don't have much spare time recently.

AZ

Quote from: 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.

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.
CB: nightly build .
Thread model: posix
gcc version 5.1.1 20150618 (Red Hat 5.1.1-4) (GCC)