text stringlengths 0 234 |
|---|
Put_Line (To.all, "%"); |
New_Page (To.all); |
end Print_Warning_Header; |
-------------------- |
-- Print_Partners -- |
-------------------- |
procedure Print_Partners (Input : EU_Projects.Projects.Project_Descriptor; |
Target : Target_Spec) |
is |
use EU_Projects.Nodes.Partners; |
procedure Print_Partners (To : File_Access) is |
procedure Print_Single_Partner (To : File_Type; Partner : Partner_Access) is |
begin |
Put_Line (To, "\newpartner" |
& "{" & Partner.Short_Name & "}" |
& "{" & To_String (Partner.Label) & "}" |
& "{" & Partner.Name & "}" |
& "{" & Partner.Country & "}"); |
end Print_Single_Partner; |
begin |
for Idx in Input.All_Partners loop |
Print_Single_Partner (To.all, Element (Idx)); |
end loop; |
end Print_Partners; |
Output : Extended_File := Open (Target); |
begin |
if Output.Class = None then |
return; |
end if; |
Within (Output => To_File_Access (Output), |
Env_Name => "partnerlist", |
Callback => Print_Partners'Access); |
Close (Output); |
end Print_Partners; |
------------------ |
-- Define_Label -- |
------------------ |
procedure Define_Label (Output : File_Type; |
Item : Node_Type'Class; |
Prefix : String; |
Add_New_Line : Boolean := True) |
is |
begin |
Put (Output, |
"\failabel{" & Image (Item.Label) & "}" |
& "{" & Prefix & "}" |
& "{" & Item.Short_Name & "}" |
& "{" & Item.Full_Index (False) & "}"); |
if Add_New_Line then |
New_Line (Output); |
end if; |
end Define_Label; |
------------------ |
-- Join_Indexes -- |
------------------ |
function Join_Indexes (Input : EU_Projects.Projects.Project_Descriptor; |
Labels : Node_Label_Lists.Vector; |
Separator : String) |
return String |
is |
Result : Unbounded_String; |
begin |
for Idx in Labels.Iterate loop |
Result := Result & Input.Find (Labels (Idx)).Full_Index (Prefixed => True); |
if Node_Label_Lists.To_Index (Idx) < Labels.Last_Index then |
Result := Result & Separator; |
end if; |
end loop; |
return To_String (Result); |
end Join_Indexes; |
procedure Print_WP (Input : Project_Descriptor; |
Output : Extended_File; |
WP : WPs.Project_WP_Access) is |
Efforts : constant Action_Nodes.Effort_List := |
WP.Efforts_Of (Input.Partner_Names); |
function Short_Name (X : Partners.Partner_Label) return String |
is |
N : constant Node_Access := Input.Find (Node_Label (X)); |
begin |
if N = null then |
raise Processor_Error |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.