Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion SYNTAX.rst
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,14 @@ Primitive fields can be classified as following:
abstractly represent a path to a filesystem object in an
architecture-independent manner.

6) File Stream::
6) Filesystem Time::

<stl-fs-filetime name='id'/>

This tag correspond to ``std::filesystem::file_time_type`` and is used to represent
a filesystem time value in an architecture-independent manner.

7) File Stream::

<stl-fstream name='id'/>

Expand Down
1 change: 1 addition & 0 deletions StructFields.pm
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ my %custom_primitive_handlers = (
'stl-condition-variable' => sub { header_ref("condition_variable"); return "std::condition_variable"; },
'stl-future' => sub { header_ref("future"); return "std::future<void>"; },
'stl-fs-path' => sub { header_ref("filesystem"); return "std::filesystem::path"; },
'stl-fs-filetime' => sub { header_ref("filesystem"); return "std::filesystem::file_time_type"; },
);

my %custom_primitive_inits = (
Expand Down
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Template for new versions:
# Future

## Structures
- added support for ``stl-fs-filetime`` representing ``std::filesystem::file_time_type``

# 53.15-r3

Expand Down
7 changes: 7 additions & 0 deletions data-definition.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@
<xs:element name="stl-function" type="StlFunctionField" />
<xs:element name="stl-variant" type="StlVariantField" />
<xs:element name="stl-fs-path" type="StlPathField" />
<xs:element name="stl-fs-filetime" type="StlFileTimeField" />
<xs:element name="df-linked-list" type="DfLinkedListField" />
<xs:element name="df-array" type="DfArrayField" />
<xs:element name="df-flagarray" type="DfFlagArrayField" />
Expand Down Expand Up @@ -387,6 +388,12 @@
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="StlFileTimeField">
<xs:complexContent>
<xs:extension base="SimpleFieldType">
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="StlVectorField">
<xs:complexContent>
<xs:extension base="ContainerFieldType">
Expand Down
1 change: 1 addition & 0 deletions lower-1.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ Error: field <xsl:value-of select='$enum-key'/> corresponds to an enum value of
<prim-type ld:meta='primitive' ld:subtype='stl-condition-variable'/>
<prim-type ld:meta='primitive' ld:subtype='stl-future'/>
<prim-type ld:meta='primitive' ld:subtype='stl-fs-path'/>
<prim-type ld:meta='primitive' ld:subtype='stl-fs-filetime'/>
</ld:primitive-types>

<xsl:template match='int8_t|uint8_t|int16_t|uint16_t|int32_t|uint32_t|int64_t|uint64_t|size_t|ssize_t|long|ulong|bool|flag-bit|s-float|d-float|padding|static-string|ptr-string|stl-string|stl-fstream|stl-mutex|stl-condition-variable|stl-future|stl-fs-path'>
Expand Down
Loading