IDE-Generator Python
Loading...
Searching...
No Matches
ide_gen.xcode.PBXGroup Class Reference
Inheritance diagram for ide_gen.xcode.PBXGroup:
Collaboration diagram for ide_gen.xcode.PBXGroup:

Public Member Functions

 __init__ (self, group_name, path, uuid=None)
 Init the PBXGroup.
 is_empty (self)
 Return True if there are no entries in this group.
 add_file (self, file_reference)
 Append a file uuid and name to the end of the list.
 add_group (self, group)
 Append a group to the end of the list.
 generate (self, line_list, indent=0)
 Write this record to output.
Public Member Functions inherited from ide_gen.xcode_json.JSONDict
 __init__ (self, name, comment=None, value=None, uuid=None, enabled=True, disable_if_empty=False, isa=None, flattened=False)
 Initialize the entry.
 add_dict_entry (self, name, value=None, enabled=True)
 Create a new JSONEntry record and add to the dictionary Take the key value pair and append it to the dictionary.
Public Member Functions inherited from ide_gen.xcode_json.JSONShared
 __init__ (self, name, comment=None, value=None, uuid=None, enabled=True)
 Initialize the JSONShared entry.
 add_item (self, item)
 Append an item to the array.
 find_item (self, name)
 Find a named JSON item.
 get_comment_string (self)
 Return the string to generate for a comment.
 get_parent (self)
 Traverse the objects until the parent is found.

Public Attributes

list group_list = []
 List of child groups.
list file_list = []
 List of child files.
 children = JSONArray("children")
 Children list.
 name_entry
 name record
 path = self.add_dict_entry("path", path)
 path record
 source_tree = self.add_dict_entry("sourceTree", value)
 sourceTree record
Public Attributes inherited from ide_gen.xcode_json.JSONDict
 disable_if_empty = disable_if_empty
 True if output is disabled if the list is empty.
 isa = isa
 "Is a" name
 flattened = flattened
 If True, flatten the child objects.
Public Attributes inherited from ide_gen.xcode_json.JSONShared
 name = name
 Object's name (Can also be the uuid)
 comment = comment
 Optional object's comment field.
 value = value
 Value (Can be None, integer, string, array, or JSON object)
 uuid = uuid
 Optional uuid string.
 enabled = enabled
 If False, disable output of this object.
 parent = None
 Reference to the parent object.

Constructor & Destructor Documentation

◆ __init__()

ide_gen.xcode.PBXGroup.__init__ ( self,
group_name,
path,
uuid = None )

Init the PBXGroup.

Parameters
group_nameName of this group
pathPathname for the group to represent
uuiduuid override for this object

Member Function Documentation

◆ add_file()

ide_gen.xcode.PBXGroup.add_file ( self,
file_reference )

Append a file uuid and name to the end of the list.

Parameters
file_referencePBXFileReference item to attach to this group.

◆ add_group()

ide_gen.xcode.PBXGroup.add_group ( self,
group )

Append a group to the end of the list.

Parameters
groupPBXGroup item to attach to this group.

◆ generate()

ide_gen.xcode.PBXGroup.generate ( self,
line_list,
indent = 0 )

Write this record to output.

Parameters
line_listLine list to append new lines.
indentnumber of tabs to insert (For recursion)

Reimplemented from ide_gen.xcode_json.JSONDict.

◆ is_empty()

ide_gen.xcode.PBXGroup.is_empty ( self)

Return True if there are no entries in this group.

Returns
True if this PBXGroup has no entries.

Member Data Documentation

◆ name_entry

ide_gen.xcode.PBXGroup.name_entry
Initial value:
= self.add_dict_entry(
"name", group_name)

name record