ContRap-Core
Public Member Functions | Protected Attributes

crp::CMakeFolder Class Reference

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.

Detailed Description

Class CMakeFolder represents a folder with a ContRap CMake file.


Constructor & Destructor Documentation

crp::CMakeFolder::CMakeFolder ( const std::string &  path = "")

Constructs a new folder.

Parameters:
pathPath to the folder
crp::CMakeFolder::~CMakeFolder ( )

Cleans up memory.


Member Function Documentation

std::vector<std::string>& crp::CMakeFolder::get_libraries ( )

Returns the link libraries.

Returns:
List of link libraries
std::string& crp::CMakeFolder::get_library ( ) [inline]

Returns the library name.

Returns:
Library name
std::vector<std::string>& crp::CMakeFolder::get_objects ( )

Returns the installed objects.

Returns:
List of objects
std::vector<std::string>& crp::CMakeFolder::get_plugins ( )

Returns the plugins added to the library.

Returns:
List of plugins
std::vector<std::string>& crp::CMakeFolder::get_sources ( )

Returns the cpp files.

Returns:
List of cpp files
bool crp::CMakeFolder::load ( const std::string &  path)

Loads a new CMake file.

Parameters:
pathPath to the folder
void crp::CMakeFolder::save ( )

Saves modified CMake file.

Parameters:
pathPath to the folder

Field Documentation

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.

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.

std::vector<std::string> crp::CMakeFolder::plugins [protected]

Plugins.

std::vector<std::string> crp::CMakeFolder::sources [protected]

Sources.


The documentation for this class was generated from the following file: