2014-01-28 00:52:49 +00:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml" >
< head >
< meta http-equiv = "Content-Type" content = "text/xhtml;charset=UTF-8" / >
< meta http-equiv = "X-UA-Compatible" content = "IE=9" / >
2014-06-17 18:10:53 +00:00
< meta name = "generator" content = "Doxygen 1.8.7" / >
2014-01-28 00:52:49 +00:00
< title > FlatBuffers: Using the schema compiler< / title >
< link href = "tabs.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "jquery.js" > < / script >
< script type = "text/javascript" src = "dynsections.js" > < / script >
< link href = "navtree.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "resize.js" > < / script >
< script type = "text/javascript" src = "navtree.js" > < / script >
< script type = "text/javascript" >
$(document).ready(initResizable);
$(window).load(resizeHeight);
< / script >
< link href = "doxygen.css" rel = "stylesheet" type = "text/css" / >
< / head >
< body >
< div id = "top" > <!-- do not remove this div, it is closed by doxygen! -->
< div id = "titlearea" >
< table cellspacing = "0" cellpadding = "0" >
< tbody >
< tr style = "height: 56px;" >
< td style = "padding-left: 0.5em;" >
< div id = "projectname" > FlatBuffers
< / div >
< / td >
< / tr >
< / tbody >
< / table >
< / div >
<!-- end header part -->
2014-06-17 18:10:53 +00:00
<!-- Generated by Doxygen 1.8.7 -->
2014-01-28 00:52:49 +00:00
< / div > <!-- top -->
< div id = "side-nav" class = "ui-resizable side-nav-resizable" >
< div id = "nav-tree" >
< div id = "nav-tree-contents" >
< div id = "nav-sync" class = "sync" > < / div >
< / div >
< / div >
< div id = "splitbar" style = "-moz-user-select:none;"
class="ui-resizable-handle">
< / div >
< / div >
< script type = "text/javascript" >
$(document).ready(function(){initNavTree('md__compiler.html','');});
< / script >
< div id = "doc-content" >
< div class = "header" >
< div class = "headertitle" >
< div class = "title" > Using the schema compiler < / div > < / div >
< / div > <!-- header -->
< div class = "contents" >
2014-07-11 21:01:55 +00:00
< div class = "textblock" > < p > Usage: < / p > < pre class = "fragment" > flatc [ -c ] [ -j ] [ -b ] [ -t ] [ -o PATH ] [ -S ] FILES...
[ -- FILES...]
< / pre > < p > The files are read and parsed in order, and can contain either schemas or data (see below). Later files can make use of definitions in earlier files.< / p >
< p > < code > --< / code > indicates that the following files are binary files in FlatBuffer format conforming to the schema(s) indicated before it. Incompatible binary files currently will give unpredictable results (!)< / p >
< p > Depending on the flags passed, additional files may be generated for each file processed:< / p >
2014-01-28 00:52:49 +00:00
< ul >
2014-07-11 21:01:55 +00:00
< li > < code > -c< / code > : Generate a C++ header for all definitions in this file (as < code > filename_generated.h< / code > ). Skipped for data.< / li >
< li > < code > -j< / code > : Generate Java classes. Skipped for data.< / li >
< li > < code > -b< / code > : If data is contained in this file, generate a < code > filename.bin< / code > containing the binary flatbuffer.< / li >
< li > < code > -t< / code > : If data is contained in this file, generate a < code > filename.json< / code > representing the data in the flatbuffer.< / li >
2014-07-08 23:35:14 +00:00
< li > < code > -o PATH< / code > : Output all generated files to PATH (either absolute, or relative to the current directory). If omitted, PATH will be the current directory. PATH should end in your systems path separator, e.g. < code > /< / code > or < code > \< / code > .< / li >
2014-09-04 23:31:44 +00:00
< li > < code > -S< / code > : Generate strict JSON (field names are enclosed in quotes). By default, no quotes are generated.< / li >
< li > < code > -P< / code > : Don't prefix enum values in generated C++ by their enum type. < / li >
2014-01-28 00:52:49 +00:00
< / ul >
< / div > < / div > <!-- contents -->
< / div > <!-- doc - content -->
<!-- Google Analytics -->
< script >
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-49880327-7', 'auto');
ga('send', 'pageview');
< / script >
< / body >
< / html >