sjef
|
Go to the source code of this file.
Functions | |
int | sjef_project_open (const char *project) |
void | sjef_project_close (const char *project) |
int | sjef_project_copy (const char *project, const char *destination_filename, int keep_hash, int keep_run_directories) |
int | sjef_project_move (const char *project, const char *destination_filename) |
void | sjef_project_erase (const char *project) |
void | sjef_project_property_erase (const char *project) |
void | sjef_project_clean (const char *project, int keep_run_directories) |
int | sjef_project_import (const char *project, const char *file) |
int | sjef_project_export (const char *project, const char *file) |
int | sjef_project_run_needed (const char *project) |
int | sjef_project_synchronize (const char *project, const char *backend, int verbosity) |
int | sjef_project_run (const char *project, const char *backend, int verbosity, int force, int wait) |
int | sjef_project_status (const char *project, int verbosity) |
const char * | sjef_project_status_message (const char *project, int verbosity) |
int | sjef_project_status_initiate (const char *project, int verbosity) |
void | sjef_project_kill (const char *project) |
void | sjef_project_property_set (const char *project, const char *key, const char *value) |
void | sjef_project_properties_set (const char *project, const char **key, const char **value) |
char * | sjef_project_property_get (const char *project, const char *key) |
char ** | sjef_project_properties_get (const char *project, const char **key) |
void | sjef_project_property_delete (const char *project, const char *key) |
char * | sjef_project_filename (const char *project) |
const char * | sjef_project_backend_cache (const char *project) |
char * | sjef_project_filename_general (const char *project, const char *suffix, const char *name, int run) |
Get the file name of the bundle, or a primary file of particular type, or a general file in the bundle. More... | |
char * | sjef_project_name (const char *project) |
size_t | sjef_project_project_hash (const char *project) |
size_t | sjef_project_input_hash (const char *project) |
int | sjef_project_recent_find (const char *filename) |
char * | sjef_project_recent (int number, const char *suffix) |
int | sjef_project_change_backend (const char *project, const char *backend) |
char * | sjef_project_backend_parameter_get (const char *project, const char *backend, const char *parameter) |
char * | sjef_project_backend_parameter_expand (const char *project, const char *backend, const char *templ) |
void | sjef_project_backend_parameter_set (const char *project, const char *backend, const char *parameter, const char *value) |
void | sjef_project_backend_parameter_delete (const char *project, const char *backend, const char *parameter) |
char ** | sjef_project_backend_parameters (const char *project, const char *backend, int def) |
Get all of the parameters referenced in the run_command of a backend. More... | |
char ** | sjef_project_backend_names (const char *project) |
char * | sjef_expand_path (const char *path, const char *default_suffix) |
char ** | sjef_backend_keys () |
Obtain a list of the names of the defined fields in a sjef::Backend. More... | |
char * | sjef_backend_value (const char *project, const char *backend, const char *key) |
Obtain the value of a defined field in a backend belonging to a project. More... | |
char * | sjef_project_backend_parameter_documentation (const char *project, const char *backend, const char *parameter) |
char * | sjef_project_run_directory (const char *project, int run) |
Obtain the path of a run directory. More... | |
void | sjef_project_run_delete (const char *project, int run) |
Delete a run directory. More... | |
void | sjef_project_take_run_files (const char *project, int run, const char *fromname, const char *toname) |
Copy files from a run directory to the main project. More... | |
void | sjef_project_set_current_run (const char *project, unsigned int run) |
Set the focussed run directory. More... | |
unsigned int | sjef_project_current_run (const char *project) |
Get the focussed run directory. More... | |
char** sjef_backend_keys | ( | ) |
Obtain a list of the names of the defined fields in a sjef::Backend.
char* sjef_backend_value | ( | const char * | project, |
const char * | backend, | ||
const char * | key | ||
) |
Obtain the value of a defined field in a backend belonging to a project.
project | The project. |
backend | The backend. If empty string or null, the default backend is assumed |
key | The field required |
char* sjef_expand_path | ( | const char * | path, |
const char * | default_suffix | ||
) |
const char* sjef_project_backend_cache | ( | const char * | project | ) |
char** sjef_project_backend_names | ( | const char * | project | ) |
void sjef_project_backend_parameter_delete | ( | const char * | project, |
const char * | backend, | ||
const char * | parameter | ||
) |
char* sjef_project_backend_parameter_documentation | ( | const char * | project, |
const char * | backend, | ||
const char * | parameter | ||
) |
char* sjef_project_backend_parameter_expand | ( | const char * | project, |
const char * | backend, | ||
const char * | templ | ||
) |
char* sjef_project_backend_parameter_get | ( | const char * | project, |
const char * | backend, | ||
const char * | parameter | ||
) |
void sjef_project_backend_parameter_set | ( | const char * | project, |
const char * | backend, | ||
const char * | parameter, | ||
const char * | value | ||
) |
char** sjef_project_backend_parameters | ( | const char * | project, |
const char * | backend, | ||
int | def | ||
) |
Get all of the parameters referenced in the run_command of a backend.
project | The name of the project |
backend | The name of the backend |
def | If zero, return the parameter names, otherwise the default values. |
int sjef_project_change_backend | ( | const char * | project, |
const char * | backend | ||
) |
void sjef_project_clean | ( | const char * | project, |
int | keep_run_directories | ||
) |
void sjef_project_close | ( | const char * | project | ) |
int sjef_project_copy | ( | const char * | project, |
const char * | destination_filename, | ||
int | keep_hash, | ||
int | keep_run_directories | ||
) |
unsigned int sjef_project_current_run | ( | const char * | project | ) |
Get the focussed run directory.
project |
void sjef_project_erase | ( | const char * | project | ) |
int sjef_project_export | ( | const char * | project, |
const char * | file | ||
) |
char* sjef_project_filename | ( | const char * | project | ) |
char* sjef_project_filename_general | ( | const char * | project, |
const char * | suffix, | ||
const char * | name, | ||
int | run | ||
) |
Get the file name of the bundle, or a primary file of particular type, or a general file in the bundle.
project | The project |
suffix | If present without name , look for a primary file with that type. If absent, the file name of the bundle is instead selected |
name | If present, look for a file of this name, appended with .suffix if that is non-blank |
run | If specified, look in a run directory for the file, instead of the main project directory. A value of 0 is interpreted as the most recent run directory. |
int sjef_project_import | ( | const char * | project, |
const char * | file | ||
) |
size_t sjef_project_input_hash | ( | const char * | project | ) |
void sjef_project_kill | ( | const char * | project | ) |
int sjef_project_move | ( | const char * | project, |
const char * | destination_filename | ||
) |
char* sjef_project_name | ( | const char * | project | ) |
int sjef_project_open | ( | const char * | project | ) |
size_t sjef_project_project_hash | ( | const char * | project | ) |
char** sjef_project_properties_get | ( | const char * | project, |
const char ** | key | ||
) |
void sjef_project_properties_set | ( | const char * | project, |
const char ** | key, | ||
const char ** | value | ||
) |
void sjef_project_property_delete | ( | const char * | project, |
const char * | key | ||
) |
void sjef_project_property_erase | ( | const char * | project | ) |
char* sjef_project_property_get | ( | const char * | project, |
const char * | key | ||
) |
void sjef_project_property_set | ( | const char * | project, |
const char * | key, | ||
const char * | value | ||
) |
char* sjef_project_recent | ( | int | number, |
const char * | suffix | ||
) |
int sjef_project_recent_find | ( | const char * | filename | ) |
int sjef_project_run | ( | const char * | project, |
const char * | backend, | ||
int | verbosity, | ||
int | force, | ||
int | wait | ||
) |
void sjef_project_run_delete | ( | const char * | project, |
int | run | ||
) |
Delete a run directory.
project | The project |
run |
char* sjef_project_run_directory | ( | const char * | project, |
int | run | ||
) |
Obtain the path of a run directory.
project | The project |
run |
|
int sjef_project_run_needed | ( | const char * | project | ) |
void sjef_project_set_current_run | ( | const char * | project, |
unsigned int | run | ||
) |
Set the focussed run directory.
project | |
run | The index of an existing run directory, a positive integer, or zero, indicating that the focus is on the most recent run directory |
int sjef_project_status | ( | const char * | project, |
int | verbosity | ||
) |
int sjef_project_status_initiate | ( | const char * | project, |
int | verbosity | ||
) |
const char* sjef_project_status_message | ( | const char * | project, |
int | verbosity | ||
) |
int sjef_project_synchronize | ( | const char * | project, |
const char * | backend, | ||
int | verbosity | ||
) |
void sjef_project_take_run_files | ( | const char * | project, |
int | run, | ||
const char * | fromname, | ||
const char * | toname | ||
) |
Copy files from a run directory to the main project.
project | The project |
run | Specifies the run to use as source, with 0 meaning the most recent. |
fromname | The file to copy. |
toname | The destination, defaulting to fromname. |