Brian Daniels / mbed-tools

Fork of mbed-tools by Morpheus

Embed: (wiki syntax)

« Back to documentation index

IarFolder Class Reference

IarFolder Class Reference

Public Member Functions

def __str__
def insert_file
def get_directory

Detailed Description

This is a recursive folder object.
To present the folder structure in the IDE as it is presented on the disk.
This can be used for uvision as well if you replace the __str__ method.
Example:
files: ./main.cpp, ./apis/I2C.h, ./mbed/common/I2C.cpp
in the project this would look like:
main.cpp
common/I2C.cpp
input:
folder_level : folder path to current folder
folder_name : name of current folder
source_files : list of source_files (all must be in same directory)

Definition at line 73 of file export/iar.py.


Member Function Documentation

def __str__ (   self )
converts the folder structue to IAR project format.

Definition at line 94 of file export/iar.py.

def get_directory (   file_path )
Returns the directory of the file

Definition at line 147 of file export/iar.py.

def insert_file (   self,
  source_input 
)
Inserts a source file into the folder tree

Definition at line 117 of file export/iar.py.