Next: , Previous: , Up: pathname   [Contents][Index]


8.2 Programming trait for the pathname trait

Function: ccstructs_pathname_T ccname_new(ccstructs_pathname_T) (ccstructs_core_t const * S, ccname_trait_table_type(ccstructs_pathname_T) const * M)

Trait constructor. Return a new trait struct given a pointer to the source struct and a pointer to the trait methods.

Function: ccstructs_core_t const * ccstructs_pathname_self (ccstructs_pathname_T I)

Return a pointer to the struct to which the trait belongs.

Function: ccmem_asciiz_t ccstructs_pathname_asciiz (cce_destination_t L, ccstructs_pathname_T I)

Apply the method asciiz() to the trait instance. Return an instance of ccmem_asciiz_t holding an ASCIIZ representation of the pathname. If an error occurs generating the representation: raise an exception by performing a non–local exit to L.

Function: bool ccstructs_pathname_is_static (ccstructs_pathname_T I)

Apply the method is_static() to the trait instance.

Function: bool ccstructs_pathname_is_absolute (cce_destination_t L, ccstructs_pathname_T I)

Apply the method is_absolute() to the trait instance. If an error occurs: raise an exception by performing a non–local exit to L.

Function: bool ccstructs_pathname_is_relative (cce_destination_t L, ccstructs_pathname_T I)

Apply the method is_relative() to the trait instance. If an error occurs: raise an exception by performing a non–local exit to L.

Function: bool ccstructs_pathname_is_normalised (cce_destination_t L, ccstructs_pathname_T I)

Apply the method is_normalised() to the trait instance. If an error occurs: raise an exception by performing a non–local exit to L.

Function: bool ccstructs_pathname_is_realpath (cce_destination_t L, ccstructs_pathname_T I)

Apply the method is_realpath() to the trait instance. If an error occurs: raise an exception by performing a non–local exit to L.

Function: ccstructs_dtor_T ccname_trait_new(ccstructs_dtor_T, ccstructs_pathname_T) (ccstructs_pathname_T I)

Apply the method dtor() to the trait instance. Build and return an instance of the trait ccstructs_dtor_T that we can use to destroy the underlying pathname representation; The dtor trait.

Function: ccstructs_dumpable_T ccname_trait_new(ccstructs_dumpable_T, ccstructs_pathname_T) (cce_destination_t L, ccstructs_pathname_T I)

Apply the method dumpable() to the trait instance. Build and return an instance of the trait ccstructs_dumpable_T acting upon the underlying pathname representation; The dtor trait. If an error occurs creating the trait (for example: because the trait is not implemented): raise an exception by performing a non–local exit to L.

Function: ccstructs_serialiser_T ccname_trait_new(ccstructs_serialiser_T, ccstructs_pathname_T) (cce_destination_t L, ccstructs_pathname_T I)

Apply the method serialiser() to the trait instance. Build and return an instance of the trait ccstructs_serialiser_T acting upon the underlying pathname representation; The dtor trait. If an error occurs creating the trait (for example: because the trait is not implemented): raise an exception by performing a non–local exit to L.

Function: ccstructs_deserialiser_T ccname_trait_new(ccstructs_deserialiser_T, ccstructs_pathname_T) (cce_destination_t L, ccstructs_pathname_T I)

Apply the method deserialiser() to the trait instance. Build and return an instance of the trait ccstructs_deserialiser_T acting upon the underlying pathname representation; The dtor trait. If an error occurs creating the trait (for example: because the trait is not implemented): raise an exception by performing a non–local exit to L.


Next: , Previous: , Up: pathname   [Contents][Index]

This document describes version 0.3.0-devel.3 of CCStructs.