1 /* Written by Ketmar // Invisible Vector <ketmar@ketmar.no-ip.org>
2 * Understanding is not required. Only obedience.
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, version 3 of the License ONLY.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 // very simple (de)serializer to json-like text format
17 module iv
.egtui
.txtser
/*is aliced*/;
20 static import iv
.txtser
;
21 public import iv
.txtser
: SRZIgnore
, SRZName
, SRZNonDefaultOnly
;
22 private import iv
.vfs
.pred
;
24 public void txtser(T
, ST
) (auto ref ST fl
, in auto ref T v
, int indent
=0) if (!is(T
== class) && isWriteableStream
!ST
) { iv
.txtser
.txtser(v
, fl
, indent
); }
25 public void txtunser(T
, ST
) (auto ref ST fl
, out T v
) if (!is(T
== class) && isReadableStream
!ST
) { iv
.txtser
.txtunser(v
, fl
); }