object
ccsds_time_fields
Helpers for parsing and generating self-describing CCSDS time fields using descriptor terms and the existing CCSDS time-code objects.
logtalk_load(ccsds_time_fields(loader))static, context_switching_callsPublic predicates
valid_descriptor/1
True if the argument is a supported CCSDS time-field descriptor term.
staticvalid_descriptor(Descriptor)valid_descriptor(@compound) - zero_or_oneparse/3
Parses a self-describing CCSDS time field from a source term into a descriptor term and a time-code term. Supported source terms are file(File), stream(Stream), and bytes(Bytes).
staticparse(Source,Descriptor,TimeCode)parse(+compound,?compound,-compound) - one_or_errorSource is a variable:instantiation_errorSource is neither a variable nor a valid source:domain_error(ccsds_time_field_source,Source)Source contents are not a supported CCSDS time field:domain_error(ccsds_time_field_byte_sequence,Bytes)generate/3
Generates a self-describing CCSDS time field to a sink term from a descriptor term and a time-code term. Supported sink terms are file(File), stream(Stream), and bytes(Bytes).
staticgenerate(Sink,Descriptor,TimeCode)generate(+compound,+compound,+compound) - one_or_errorSink is a variable:instantiation_errorDescriptor is a variable:instantiation_errorTimeCode is a variable:instantiation_errorSink is neither a variable nor a valid sink:domain_error(ccsds_time_field_sink,Sink)Descriptor is neither a variable nor a supported descriptor term:domain_error(ccsds_time_field_descriptor,Descriptor)TimeCode is neither a variable nor a valid time code term for the selected descriptor:domain_error(ccsds_time_code_term,TimeCode)format/2
Returns the CCSDS time-code format selected by a descriptor term.
staticformat(Descriptor,Format)format(+compound,-atom) - one_or_errorepoch/2
Returns the epoch selected by a descriptor term. Calendar segmented descriptors return none.
staticepoch(Descriptor,Epoch)epoch(+compound,-atom) - one_or_errorProtected predicates
(no local declarations; see entity ancestors if any)
Private predicates
(no local declarations; see entity ancestors if any)
Operators
(none)