Author Topic: How to explore library  (Read 2565 times)

Offline AZ

  • Almost regular
  • **
  • Posts: 163
How to explore library
« 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 ?
CB: nightly build .
Thread model: posix
gcc version 5.1.1 20150618 (Red Hat 5.1.1-4) (GCC)

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13165
    • Travis build status
Re: How to explore library
« Reply #1 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
(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!]

Offline AZ

  • Almost regular
  • **
  • Posts: 163
Re: How to explore library
« Reply #2 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.
CB: nightly build .
Thread model: posix
gcc version 5.1.1 20150618 (Red Hat 5.1.1-4) (GCC)

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 2935
Re: How to explore library
« Reply #3 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

Offline AZ

  • Almost regular
  • **
  • Posts: 163
Re: How to explore library
« Reply #4 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 !
CB: nightly build .
Thread model: posix
gcc version 5.1.1 20150618 (Red Hat 5.1.1-4) (GCC)

Offline scarphin

  • Lives here!
  • ****
  • Posts: 644
Re: How to explore library
« Reply #5 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.

Offline AZ

  • Almost regular
  • **
  • Posts: 163
Re: How to explore library
« Reply #6 on: April 21, 2016, 05:13:43 pm »
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
« Last Edit: April 21, 2016, 05:19:37 pm by AZ »
CB: nightly build .
Thread model: posix
gcc version 5.1.1 20150618 (Red Hat 5.1.1-4) (GCC)

Offline scarphin

  • Lives here!
  • ****
  • Posts: 644
Re: How to explore library
« Reply #7 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.

Offline AZ

  • Almost regular
  • **
  • Posts: 163
Re: How to explore library
« Reply #8 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.
CB: nightly build .
Thread model: posix
gcc version 5.1.1 20150618 (Red Hat 5.1.1-4) (GCC)