winIDEA SDK
isys::CModule Class Reference

Description

This immutable class contains information about source code file.

#include <CDataController.h>

Public Member Functions

 CModule (const std::string &path, const std::string &name)
 Instantiates object. More...
 
std::string getPath () const
 Returns source file name including folder relative to winIDEA workspace, or abs path, if the file is not below winIDEA workspace dir. More...
 
std::string getName () const
 Returns file name without directory. More...
 

Constructor & Destructor Documentation

◆ CModule()

isys::CModule::CModule ( const std::string &  path,
const std::string &  name 
)
inline

Instantiates object.

Constructor is not intended to be used by clients.

Parameters
pathsource file name including directory relative to winIDEA workspace, or abs path, if the file is not below winIDEA workspace directory. Example: 'src/comomn/main.c'
namesource file name without directory. Example: main.c

Member Function Documentation

◆ getName()

std::string isys::CModule::getName ( ) const
inline

Returns file name without directory.

Example: main.c.

◆ getPath()

std::string isys::CModule::getPath ( ) const
inline

Returns source file name including folder relative to winIDEA workspace, or abs path, if the file is not below winIDEA workspace dir.

Example: src/comomn/main.c