Difference between revisions of "Truxton C API"

From truxwiki.com
Jump to navigation Jump to search
Line 281: Line 281:
  
 
==Event==
 
==Event==
* [[truxton_event_create]]
+
If you need to save a significant place in time, use the following functions.
* [[truxton_event_destroy]]
+
These will create a record in the <code><nowiki>[</nowiki>[[Event Table|Event]]<nowiki>]</nowiki></code> table.
* [[truxton_event_save]]
+
 
* [[truxton_event_get_id]]
+
* [[truxton_event_create]] - Creates a new event object
* [[truxton_event_set_title]]
+
* [[truxton_event_destroy]] - Destroys an existing event object
* [[truxton_event_get_title]]
+
* [[truxton_event_save]] - Saves the data in this object to the <code><nowiki>[</nowiki>[[Event Table|Event]]<nowiki>]</nowiki></code> table
* [[truxton_event_set_description]]
+
* [[truxton_event_get_id]] - After saving, retrieves the [https://en.wikipedia.org/wiki/Universally_unique_identifier GUID] of the event.
* [[truxton_event_get_description]]
+
* [[truxton_event_get_title]] - Gets the short title of the event
* [[truxton_event_get_start]]
+
* [[truxton_event_set_title]] - Sets the short title of the event
* [[truxton_event_set_start]]
+
* [[truxton_event_get_description]] - Gets the long description of the event
* [[truxton_event_get_end]]
+
* [[truxton_event_set_description]] - Sets the long description of the event
* [[truxton_event_set_end]]
+
* [[truxton_event_get_start]] - Gets the beginning of the event
* [[truxton_event_get_type]]
+
* [[truxton_event_set_start]] - Sets the beginning of the event
* [[truxton_event_set_type]]
+
* [[truxton_event_get_end]] - Gets the end of the event
* [[truxton_event_get_media_id]]
+
* [[truxton_event_set_end]] - Sets the end of the event
* [[truxton_event_set_media_id]]
+
* [[truxton_event_get_type]] - Gets the type of event
* [[truxton_event_get_file_id]]
+
* [[truxton_event_set_type]] - Sets the type of event
* [[truxton_event_set_file_id]]
+
* [[truxton_event_get_media_id]] - Gets the [https://en.wikipedia.org/wiki/Universally_unique_identifier GUID] of the media this event belongs to
 +
* [[truxton_event_set_media_id]] - Sets the [https://en.wikipedia.org/wiki/Universally_unique_identifier GUID] of the media this event belongs to
 +
* [[truxton_event_get_file_id]] - Gets the [https://en.wikipedia.org/wiki/Universally_unique_identifier GUID] of the file this event came from
 +
* [[truxton_event_set_file_id]] - Sets the [https://en.wikipedia.org/wiki/Universally_unique_identifier GUID] of the file this event came from
  
 
==EXIF (Camera Information)==
 
==EXIF (Camera Information)==

Revision as of 09:26, 10 November 2020

Truxton functionality is exposed to the C programming world as a DLL named TruxtonCAPI.dll in the C:\Program Files\Truxton\SDK folder. This DLL can be called from any programming language that has the ability to make operating system calls.

Philosophy

The API is considered to be "flat" in that only sixty-four bit integers and ASCII character strings are used in the interface. This was chosen to make it easy for other languages to interface to. The coding convention is all lower case names with underscores separating words. Truxton is a member of the east const posse.

API Groups

The API is broken down into the different areas of Truxton.

Initialization

Functions

ETL Functions

Child Files

A child file is one that you have created and need to save in Truxton.

Creating things related to this file:

File IO

File Record Fields

File Actions

These are things your can do to a file. These are not data items stored in the database.

Create Objects from File

The following APIs are used to create objects with a file as their parent.

Debugging

Media

These are the API's that allow you to add to the Media table in the database.

Message

This is the message sent on the message bus between the ETL processes.

File Export

Artifacts

Artifacts are pieces of information that are also known as entities.

Event

If you need to save a significant place in time, use the following functions. These will create a record in the [Event] table.

EXIF (Camera Information)

File Type

Geographic Location

Options

Truxton "options" are otherwise known as configuration settings, command line options, etc. They are configuration items that your program can use.

Relation

Website Visit

USB Device