Classes | Functions | Variables
srt_ntide_target Namespace Reference

Classes

class  get_source_file_helper
 
class  ide_target
 

Functions

def find_dependent_projects (file_name_list, all_projects)
 
def is_a_project (project_type)
 
def get_file_class (filename)
 

Variables

dictionary source_file_classes = {}
 
list exe_file_types = ["exe", "x", "", "tst"]
 
list header_file_types = ["hpp", "h"]
 
list source_file_types = []
 A list of all the source file types – built from above. More...
 

Function Documentation

def srt_ntide_target.find_dependent_projects (   file_name_list,
  all_projects 
)

Definition at line 618 of file srt_ntide_target.py.

618 def find_dependent_projects (file_name_list, all_projects):
619  found_list = []
620 
621  for file_name in file_name_list:
622  if all_projects.has_key(file_name):
623  t_type = all_projects[file_name].get_target_type()
624  if is_a_project (t_type):
625  found_list.append (file_name)
626 
627  return found_list
628 
629 #
630 # is_a_project
631 #
632 # Return true if this guy is a project
633 #
def find_dependent_projects(file_name_list, all_projects)
def srt_ntide_target.get_file_class (   filename)

Definition at line 642 of file srt_ntide_target.py.

Referenced by srt_ntide_project_file.create_project_file().

642 def get_file_class (filename):
643  file_class = ""
644  pos = regex.search ("\.[^\.]*$", filename)
645  if pos == -1:
646  file_type = "exe"
647  else:
648  file_type = filename[pos+1:]
649 
650  if file_type in header_file_types:
651  return "hpp"
652 
653  for a_target_class in source_file_classes.keys():
654  if file_type in source_file_classes[a_target_class]:
655  file_class = a_target_class
656  return file_class
657 
658 #
659 # get_source_file_helper
660 #
661 # Helper obj to get the list of source files
662 #
def get_file_class(filename)
def srt_ntide_target.is_a_project (   project_type)

Definition at line 634 of file srt_ntide_target.py.

634 def is_a_project (project_type):
635  return (project_type == "lib") or (project_type == "exe") or (project_type == "")
636 
637 #
638 # get_file_class
639 #
640 # Returns the class of a source file
641 #
def is_a_project(project_type)

Variable Documentation

list srt_ntide_target.exe_file_types = ["exe", "x", "", "tst"]

Definition at line 28 of file srt_ntide_target.py.

list srt_ntide_target.header_file_types = ["hpp", "h"]

Definition at line 31 of file srt_ntide_target.py.

dictionary srt_ntide_target.source_file_classes = {}

Definition at line 23 of file srt_ntide_target.py.

list srt_ntide_target.source_file_types = []

A list of all the source file types – built from above.

Definition at line 36 of file srt_ntide_target.py.