class Library
Defined at line 375 of file ../../src/lib/fidl_codec/library_loader.h
Public Methods
LibraryLoader * enclosing_loader ()
Defined at line 379 of file ../../src/lib/fidl_codec/library_loader.h
const std::string & name ()
Defined at line 380 of file ../../src/lib/fidl_codec/library_loader.h
const std::string & source ()
The source file path from which this library has been loaded. Will be returned as it was
entered when `AddPath` or `AddContent` was called, so if it is a relative path or absolute path
it will remain as such.
Defined at line 385 of file ../../src/lib/fidl_codec/library_loader.h
const std::vector<std::unique_ptr<Protocol>> & protocols ()
Defined at line 386 of file ../../src/lib/fidl_codec/library_loader.h
void DecodeTypes ()
Decode all the values from the JSON definition.
Defined at line 411 of file ../../src/lib/fidl_codec/library_loader.cc
const Table * GetTable (const std::string & table_name)
Defined at line 432 of file ../../src/lib/fidl_codec/library_loader.h
bool DecodeAll ()
Decode all the content of this FIDL file.
Defined at line 473 of file ../../src/lib/fidl_codec/library_loader.cc
std::unique_ptr<Type> TypeFromIdentifier (bool is_nullable, const std::string & identifier)
Defined at line 498 of file ../../src/lib/fidl_codec/library_loader.cc
size_t InlineSizeFromIdentifier (std::string & identifier)
The size of the type with name |identifier| when it is inline (e.g.,
embedded in an array)
Library & operator= (const Library & )
Defined at line 440 of file ../../src/lib/fidl_codec/library_loader.h
void Library (const Library & )
Defined at line 441 of file ../../src/lib/fidl_codec/library_loader.h
bool GetProtocolByName (std::string_view name, Protocol ** ptr)
Set *ptr to the Protocol called |name|
Defined at line 528 of file ../../src/lib/fidl_codec/library_loader.cc
bool ExtractBool (const rapidjson::Value * json_definition, std::string_view container_type, std::string_view container_name, const char * field_name)
Extract a boolean field from a JSON value.
Defined at line 538 of file ../../src/lib/fidl_codec/library_loader.cc
std::string ExtractString (const rapidjson::Value * json_definition, std::string_view container_type, std::string_view container_name, const char * field_name)
Extract a string field from a JSON value.
Defined at line 547 of file ../../src/lib/fidl_codec/library_loader.cc
uint64_t ExtractUint64 (const rapidjson::Value * json_definition, std::string_view container_type, std::string_view container_name, const char * field_name)
Extract a uint64_t field from a JSON value.
Defined at line 557 of file ../../src/lib/fidl_codec/library_loader.cc
uint32_t ExtractUint32 (const rapidjson::Value * json_definition, std::string_view container_type, std::string_view container_name, const char * field_name)
Extract a uint32_t field from a JSON value.
Defined at line 567 of file ../../src/lib/fidl_codec/library_loader.cc
std::unique_ptr<Type> ExtractScalarType (const rapidjson::Value * json_definition, std::string_view container_type, std::string_view container_name, const char * field_name)
Extract a scalar type from a JSON value.
Defined at line 578 of file ../../src/lib/fidl_codec/library_loader.cc
std::unique_ptr<Type> ExtractType (const rapidjson::Value * json_definition, std::string_view container_type, std::string_view container_name, const char * field_name)
Extract a type from a JSON value.
Defined at line 589 of file ../../src/lib/fidl_codec/library_loader.cc
uint64_t ExtractFieldOffset (const rapidjson::Value * json_definition, std::string_view container_type, std::string_view container_name, const char * field_name)
Extract field offset.
Defined at line 600 of file ../../src/lib/fidl_codec/library_loader.cc
void FieldNotFound (std::string_view container_type, std::string_view container_name, const char * field_name)
Display an error when a field is not found.
Defined at line 610 of file ../../src/lib/fidl_codec/library_loader.cc
void ~Library ()
Defined at line 409 of file ../../src/lib/fidl_codec/library_loader.cc
Friends
class LibraryLoader