|
ContRap-Core
|
Class CMakeFolder represents a folder with a ContRap CMake file. More...
#include <cmaketools.h>
Public Member Functions | |
| CMakeFolder (const std::string &path="") | |
| Constructs a new folder. | |
| ~CMakeFolder () | |
| Cleans up memory. | |
| bool | load (const std::string &path) |
| Loads a new CMake file. | |
| void | save () |
| Saves modified CMake file. | |
| std::vector< std::string > & | get_plugins () |
| Returns the plugins added to the library. | |
| std::vector< std::string > & | get_libraries () |
| Returns the link libraries. | |
| std::vector< std::string > & | get_sources () |
| Returns the cpp files. | |
| std::vector< std::string > & | get_objects () |
| Returns the installed objects. | |
| std::string & | get_library () |
| Returns the library name. | |
Protected Attributes | |
| std::string | contents |
| String with CMake file contents. | |
| std::string | library |
| Plugin librar name. | |
| std::vector< std::string > | plugins |
| Plugins. | |
| int | plugin_pos |
| int | plugin_end_pos |
| std::vector< std::string > | libraries |
| Libraries. | |
| int | library_pos |
| int | library_end_pos |
| std::vector< std::string > | objects |
| Objects. | |
| int | object_pos |
| int | object_end_pos |
| std::vector< std::string > | sources |
| Sources. | |
| std::vector< std::string > | others |
| std::string | path |
| Current path. | |
Class CMakeFolder represents a folder with a ContRap CMake file.
| crp::CMakeFolder::CMakeFolder | ( | const std::string & | path = "" | ) |
Constructs a new folder.
| path | Path to the folder |
| crp::CMakeFolder::~CMakeFolder | ( | ) |
Cleans up memory.
| std::vector<std::string>& crp::CMakeFolder::get_libraries | ( | ) |
Returns the link libraries.
| std::string& crp::CMakeFolder::get_library | ( | ) | [inline] |
Returns the library name.
| std::vector<std::string>& crp::CMakeFolder::get_objects | ( | ) |
Returns the installed objects.
| std::vector<std::string>& crp::CMakeFolder::get_plugins | ( | ) |
Returns the plugins added to the library.
| std::vector<std::string>& crp::CMakeFolder::get_sources | ( | ) |
Returns the cpp files.
| bool crp::CMakeFolder::load | ( | const std::string & | path | ) |
Loads a new CMake file.
| path | Path to the folder |
| void crp::CMakeFolder::save | ( | ) |
Saves modified CMake file.
| path | Path to the folder |
std::string crp::CMakeFolder::contents [protected] |
String with CMake file contents.
std::vector<std::string> crp::CMakeFolder::libraries [protected] |
Libraries.
std::string crp::CMakeFolder::library [protected] |
Plugin librar name.
int crp::CMakeFolder::library_end_pos [protected] |
int crp::CMakeFolder::library_pos [protected] |
int crp::CMakeFolder::object_end_pos [protected] |
int crp::CMakeFolder::object_pos [protected] |
std::vector<std::string> crp::CMakeFolder::objects [protected] |
Objects.
std::vector<std::string> crp::CMakeFolder::others [protected] |
std::string crp::CMakeFolder::path [protected] |
Current path.
int crp::CMakeFolder::plugin_end_pos [protected] |
int crp::CMakeFolder::plugin_pos [protected] |
std::vector<std::string> crp::CMakeFolder::plugins [protected] |
Plugins.
std::vector<std::string> crp::CMakeFolder::sources [protected] |
Sources.
1.7.3