anjuta-token-file

## anjuta-token-file anjuta-token-file |

## Synopsis

    #define             ANJUTA_TOKEN_FILE_TYPE
    AnjutaTokenFile *   anjuta_token_file_new               (GFile *file);
    void                anjuta_token_file_free              (AnjutaTokenFile *file);
    AnjutaToken *       anjuta_token_file_load              (AnjutaTokenFile *file,
                                                             GError **error);
    gboolean            anjuta_token_file_unload            (AnjutaTokenFile *file);
    gboolean            anjuta_token_file_save              (AnjutaTokenFile *file,
                                                             GError **error);
    void                anjuta_token_file_move              (AnjutaTokenFile *file,
                                                             GFile *new_file);
    gboolean            anjuta_token_file_update            (AnjutaTokenFile *file,
                                                             AnjutaToken *token);
    gboolean            anjuta_token_file_get_token_location
                                                            (AnjutaTokenFile *file,
                                                             AnjutaTokenFileLocation *location,
                                                             AnjutaToken *token);
    gsize               anjuta_token_file_get_token_position
                                                            (AnjutaTokenFile *file,
                                                             AnjutaToken *token);
    GFile *             anjuta_token_file_get_file          (AnjutaTokenFile *file);
    AnjutaToken *       anjuta_token_file_get_content       (AnjutaTokenFile *file);
    gboolean            anjuta_token_file_is_dirty          (AnjutaTokenFile *file);
                        AnjutaTokenFileClass;
                        AnjutaTokenFile;

## Object Hierarchy

      GObject
       +----AnjutaTokenFile

## Description

## Details

### ANJUTA_TOKEN_FILE_TYPE

    #define ANJUTA_TOKEN_FILE_TYPE                     (anjuta_token_file_get_type ())

### anjuta_token_file_new ()

    AnjutaTokenFile *   anjuta_token_file_new               (GFile *file);

### anjuta_token_file_free ()

    void                anjuta_token_file_free              (AnjutaTokenFile *file);

### anjuta_token_file_load ()

    AnjutaToken *       anjuta_token_file_load              (AnjutaTokenFile *file,
                                                             GError **error);

### anjuta_token_file_unload ()

    gboolean            anjuta_token_file_unload            (AnjutaTokenFile *file);

### anjuta_token_file_save ()

    gboolean            anjuta_token_file_save              (AnjutaTokenFile *file,
                                                             GError **error);

### anjuta_token_file_move ()

    void                anjuta_token_file_move              (AnjutaTokenFile *file,
                                                             GFile *new_file);

### anjuta_token_file_update ()

    gboolean            anjuta_token_file_update            (AnjutaTokenFile *file,
                                                             AnjutaToken *token);

Update the file with all changed token starting from `token`. The function can return an error if the token is not in the file.

`file` : | a AnjutaTokenFile derived class object.
`token` : | Token to update.
Returns : | `TRUE` is the update is done without error.

### anjuta_token_file_get_token_location ()

    gboolean            anjuta_token_file_get_token_location
                                                            (AnjutaTokenFile *file,
                                                             AnjutaTokenFileLocation *location,
                                                             AnjutaToken *token);

### anjuta_token_file_get_token_position ()

    gsize               anjuta_token_file_get_token_position
                                                            (AnjutaTokenFile *file,
                                                             AnjutaToken *token);

Returns the position of the token in the file. This position is a number which doesn't correspond to a line number or a character but respect the order of token in the file.

`file` : | AnjutaTokenFile object
`token` : | token
Returns : | The position of the token or 0 if the token is not in the file.

### anjuta_token_file_get_file ()

    GFile *             anjuta_token_file_get_file          (AnjutaTokenFile *file);

### anjuta_token_file_get_content ()

    AnjutaToken *       anjuta_token_file_get_content       (AnjutaTokenFile *file);

### anjuta_token_file_is_dirty ()

    gboolean            anjuta_token_file_is_dirty          (AnjutaTokenFile *file);

### AnjutaTokenFileClass

    typedef struct _AnjutaTokenFileClass AnjutaTokenFileClass;

### AnjutaTokenFile

    typedef struct _AnjutaTokenFile AnjutaTokenFile;