Package: registry.sysdep

Dependencies

	with Ada.Command_Line.Environment; use Ada.Command_Line.Environment;
	with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
	with Ada.Strings; use Ada.Strings;

Description

Pakage for system dependencies.

Header

package registry.sysdep is
 

Exceptions

NO_ENV_HOME
thrown when the enviroment variable $HOME is not set

Type Summary

compiled_for

Other Items:

type compiled_for is (SYS_UNIX,SYS_WIN);
Type which indicates, for wich platform the library is compiled

function Get_Compiled_For return compiled_for;
Returns the Platfrom on wich the library was compiled
Returns : compiled_for Platform on which it was compiled

function Get_Home_Dir return String;
Get the Home Directory. Requires the environment variable HOME. If this variable is not set, the exception NO_ENV_HOME is raised.
Returns : String Home Directory of the user

function Get_Sys_Dir return String;
Get the directory where the system wide configuration files reside.
Returns : String System wide configuration directory

private

   --  Implementation-defined ...
end registry.sysdep;