#include <mp/config.h>
#include <mp/util.h>
#include <algorithm>
#include <capnp/schema-parser.h>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <errno.h>
#include <fstream>
#include <functional>
#include <iostream>
#include <kj/array.h>
#include <kj/common.h>
#include <kj/filesystem.h>
#include <kj/memory.h>
#include <kj/string.h>
#include <map>
#include <set>
#include <sstream>
#include <stdexcept>
#include <string>
#include <system_error>
#include <unistd.h>
#include <vector>
Go to the source code of this file.
|
template<typename Reader > |
static bool | AnnotationExists (const Reader &reader, uint64_t id) |
|
template<typename Reader > |
static bool | GetAnnotationText (const Reader &reader, uint64_t id, kj::StringPtr *result) |
|
template<typename Reader > |
static bool | GetAnnotationInt32 (const Reader &reader, uint64_t id, int32_t *result) |
|
static void | ForEachMethod (const capnp::InterfaceSchema &interface, const std::function< void(const capnp::InterfaceSchema &interface, const capnp::InterfaceSchema::Method)> &callback) |
|
template<class OutputStream , class Array , const char * Enable = decltype(std::declval<Array>().begin())()> |
static OutputStream & | operator<< (OutputStream &os, const Array &array) |
|
static std::string | Cap (kj::StringPtr str) |
|
static bool | BoxedType (const ::capnp::Type &type) |
|
static void | Generate (kj::StringPtr src_prefix, kj::StringPtr include_prefix, kj::StringPtr src_file, const std::vector< kj::StringPtr > &import_paths, const kj::ReadableDirectory &src_dir, const std::vector< kj::Own< const kj::ReadableDirectory > > &import_dirs) |
|
int | main (int argc, char **argv) |
|
◆ PROXY_BIN
#define PROXY_BIN "mpgen" |
◆ PROXY_DECL
#define PROXY_DECL "mp/proxy.h" |
◆ PROXY_TYPES
#define PROXY_TYPES "mp/proxy-types.h" |
◆ CharSlice
◆ AnnotationExists()
template<typename Reader >
static bool AnnotationExists |
( |
const Reader & |
reader, |
|
|
uint64_t |
id |
|
) |
| |
|
static |
◆ BoxedType()
static bool BoxedType |
( |
const ::capnp::Type & |
type | ) |
|
|
static |
◆ Cap()
static std::string Cap |
( |
kj::StringPtr |
str | ) |
|
|
static |
◆ ForEachMethod()
static void ForEachMethod |
( |
const capnp::InterfaceSchema & |
interface, |
|
|
const std::function< void(const capnp::InterfaceSchema &interface, const capnp::InterfaceSchema::Method)> & |
callback |
|
) |
| |
|
static |
◆ Generate()
static void Generate |
( |
kj::StringPtr |
src_prefix, |
|
|
kj::StringPtr |
include_prefix, |
|
|
kj::StringPtr |
src_file, |
|
|
const std::vector< kj::StringPtr > & |
import_paths, |
|
|
const kj::ReadableDirectory & |
src_dir, |
|
|
const std::vector< kj::Own< const kj::ReadableDirectory > > & |
import_dirs |
|
) |
| |
|
static |
◆ GetAnnotationInt32()
template<typename Reader >
static bool GetAnnotationInt32 |
( |
const Reader & |
reader, |
|
|
uint64_t |
id, |
|
|
int32_t * |
result |
|
) |
| |
|
static |
◆ GetAnnotationText()
template<typename Reader >
static bool GetAnnotationText |
( |
const Reader & |
reader, |
|
|
uint64_t |
id, |
|
|
kj::StringPtr * |
result |
|
) |
| |
|
static |
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
◆ operator<<()
template<class OutputStream , class Array , const char * Enable = decltype(std::declval<Array>().begin())()>
static OutputStream & operator<< |
( |
OutputStream & |
os, |
|
|
const Array & |
array |
|
) |
| |
|
static |
◆ COUNT_ANNOTATION_ID
constexpr uint64_t COUNT_ANNOTATION_ID = 0xd02682b319f69b38ull |
|
constexpr |
◆ EXCEPTION_ANNOTATION_ID
constexpr uint64_t EXCEPTION_ANNOTATION_ID = 0x996a183200992f88ull |
|
constexpr |
◆ INCLUDE_ANNOTATION_ID
constexpr uint64_t INCLUDE_ANNOTATION_ID = 0xb899f3c154fdb458ull |
|
constexpr |
◆ INCLUDE_TYPES_ANNOTATION_ID
constexpr uint64_t INCLUDE_TYPES_ANNOTATION_ID = 0xbcec15648e8a0cf1ull |
|
constexpr |
◆ NAME_ANNOTATION_ID
constexpr uint64_t NAME_ANNOTATION_ID = 0xb594888f63f4dbb9ull |
|
constexpr |
◆ NAMESPACE_ANNOTATION_ID
constexpr uint64_t NAMESPACE_ANNOTATION_ID = 0xb9c6f99ebf805f2cull |
|
constexpr |
◆ SKIP_ANNOTATION_ID
constexpr uint64_t SKIP_ANNOTATION_ID = 0x824c08b82695d8ddull |
|
constexpr |
◆ WRAP_ANNOTATION_ID
constexpr uint64_t WRAP_ANNOTATION_ID = 0xe6f46079b7b1405eull |
|
constexpr |