company logo

absolute - Do prefix with current project path

When the file path is not automatically recognized as absolute path within the file system environment (i.e. when starting with / or with a drive letter like c:), the defined file path will be prefixed with the current project path. This is done in different ways: for reading/writing this file, the full project path is prefixed; for using with an #include-directive the relative project path is prefixed.

In order to suppress prefixing the path, the option can be set to true.

It is suggested to set this option always, when the path must not be prefixed, also, when it could be recognized as absolute path within the file system environment. Especially, when using option variables within path names, the option should be evaluated and set.

EXAMPLE1: absolute=false

file_path=%PRJ_INCLUDE%

file_name=myfile

file_ext=h

-->

Read/Write the file via import/export:

io_path=c:\odaba\Sample\SampleBase\SampleCtxi\include\myfile.h (Windows)

io_path=/odaba/Sample/SampleBase/SampleCtxi/include/myfile.h (Unix)

Reference the file within a c++ source or header file:

#include <SampleBase/SampleCtxi/include/myfile.h>

EXAMPLE2: absolute=true

file_path=%PRJ_ROOT%%PRJ_INCLUDE%

file_name=myfile

file_ext=h

-->

Read/Write the file via import/export:

io_path=c:\odaba\Sample\include\myfile.h (Windows)

io_path=/odaba/Sample/include/myfile.h (Unix)

Reference the file within a c++ source or header file:

#include "c:/odaba/Sample/include/myfile.h" (Windows)

#include "/odaba/Sample/include/myfile.h" (Unix)

EXAMPLE3: absolute=true

file_path=""

file_name=map

file_ext=""

-->

Because this is a system include writing the file ahould be sepressed by setting the option no_exptert=true.

io_path==map

Reference the file within a c++ source or header file:

#include <map>

Type: logical