2003-07-20 22:29:38 +03:00
|
|
|
#ifndef __NORMALISE_H
|
|
|
|
#define __NORMALISE_H
|
|
|
|
|
|
|
|
#include "fstate.hh"
|
|
|
|
|
|
|
|
|
|
|
|
/* Normalise an fstate-expression, that is, return an equivalent
|
2003-07-22 18:15:15 +03:00
|
|
|
Slice. (For the meaning of `pending', see expandId()). */
|
|
|
|
Slice normaliseFState(FSId id, FSIdSet pending = FSIdSet());
|
2003-07-20 22:29:38 +03:00
|
|
|
|
|
|
|
/* Realise a Slice in the file system. */
|
2003-07-22 18:15:15 +03:00
|
|
|
void realiseSlice(const Slice & slice, FSIdSet pending = FSIdSet());
|
2003-07-20 22:29:38 +03:00
|
|
|
|
|
|
|
/* Get the list of root (output) paths of the given
|
|
|
|
fstate-expression. */
|
|
|
|
Strings fstatePaths(const FSId & id, bool normalise);
|
|
|
|
|
|
|
|
/* Get the list of paths referenced by the given fstate-expression. */
|
2003-07-21 17:46:01 +03:00
|
|
|
Strings fstateRefs(const FSId & id);
|
|
|
|
|
|
|
|
/* Return the list of the ids of all known fstate-expressions whose
|
|
|
|
output ids are completely contained in `ids'. */
|
|
|
|
FSIds findGenerators(const FSIds & ids);
|
2003-07-20 22:29:38 +03:00
|
|
|
|
|
|
|
/* Register a successor. */
|
|
|
|
void registerSuccessor(const FSId & id1, const FSId & id2);
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* !__NORMALISE_H */
|