/drivers/hdf_core/framework/tools/hdi-gen/ast/ |
D | ast_array_type.h | 35 std::string ToString() const override; 39 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override; 41 std::string EmitCppType(TypeMode mode = TypeMode::NO_MODE) const override; 43 std::string EmitJavaType(TypeMode mode, bool isInnerType = false) const override; 45 …void EmitCWriteVar(const std::string &parcelName, const std::string &name, const std::string &ecNa… 46 const std::string &gotoLabel, StringBuilder &sb, const std::string &prefix) const override; 48 …void EmitCProxyWriteOutVar(const std::string &parcelName, const std::string &name, const std::stri… 49 const std::string &gotoLabel, StringBuilder &sb, const std::string &prefix) const override; 51 void EmitCProxyReadVar(const std::string &parcelName, const std::string &name, bool isInnerType, 52 const std::string &ecName, const std::string &gotoLabel, StringBuilder &sb, [all …]
|
D | ast_string_type.h | 22 std::string ToString() const override; 26 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override; 28 std::string EmitCppType(TypeMode mode = TypeMode::NO_MODE) const override; 30 std::string EmitJavaType(TypeMode mode, bool isInnerType = false) const override; 32 …void EmitCWriteVar(const std::string &parcelName, const std::string &name, const std::string &ecNa… 33 const std::string &gotoLabel, StringBuilder &sb, const std::string &prefix) const override; 35 …void EmitCProxyWriteOutVar(const std::string &parcelName, const std::string &name, const std::stri… 36 const std::string &gotoLabel, StringBuilder &sb, const std::string &prefix) const override; 38 void EmitCProxyReadVar(const std::string &parcelName, const std::string &name, bool isInnerType, 39 const std::string &ecName, const std::string &gotoLabel, StringBuilder &sb, [all …]
|
D | ast_boolean_type.h | 22 std::string ToString() const override; 26 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override; 28 std::string EmitCppType(TypeMode mode = TypeMode::NO_MODE) const override; 30 std::string EmitJavaType(TypeMode mode, bool isInnerType = false) const override; 32 …void EmitCWriteVar(const std::string &parcelName, const std::string &name, const std::string &ecNa… 33 const std::string &gotoLabel, StringBuilder &sb, const std::string &prefix) const override; 35 void EmitCProxyReadVar(const std::string &parcelName, const std::string &name, bool isInnerType, 36 const std::string &ecName, const std::string &gotoLabel, StringBuilder &sb, 37 const std::string &prefix) const override; 39 …void EmitCStubReadVar(const std::string &parcelName, const std::string &name, const std::string &e… [all …]
|
D | ast_float_type.h | 22 std::string ToString() const override; 26 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override; 28 std::string EmitCppType(TypeMode mode = TypeMode::NO_MODE) const override; 30 std::string EmitJavaType(TypeMode mode, bool isInnerType = false) const override; 32 …void EmitCWriteVar(const std::string &parcelName, const std::string &name, const std::string &ecNa… 33 const std::string &gotoLabel, StringBuilder &sb, const std::string &prefix) const override; 35 void EmitCProxyReadVar(const std::string &parcelName, const std::string &name, bool isInnerType, 36 const std::string &ecName, const std::string &gotoLabel, StringBuilder &sb, 37 const std::string &prefix) const override; 39 …void EmitCStubReadVar(const std::string &parcelName, const std::string &name, const std::string &e… [all …]
|
D | ast_byte_type.h | 22 std::string ToString() const override; 26 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override; 28 std::string EmitCppType(TypeMode mode = TypeMode::NO_MODE) const override; 30 std::string EmitJavaType(TypeMode mode, bool isInnerType = false) const override; 32 …void EmitCWriteVar(const std::string &parcelName, const std::string &name, const std::string &ecNa… 33 const std::string &gotoLabel, StringBuilder &sb, const std::string &prefix) const override; 35 void EmitCProxyReadVar(const std::string &parcelName, const std::string &name, bool isInnerType, 36 const std::string &ecName, const std::string &gotoLabel, StringBuilder &sb, 37 const std::string &prefix) const override; 39 …void EmitCStubReadVar(const std::string &parcelName, const std::string &name, const std::string &e… [all …]
|
D | ast_double_type.h | 22 std::string ToString() const override; 26 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override; 28 std::string EmitCppType(TypeMode mode = TypeMode::NO_MODE) const override; 30 std::string EmitJavaType(TypeMode mode, bool isInnerType = false) const override; 32 …void EmitCWriteVar(const std::string &parcelName, const std::string &name, const std::string &ecNa… 33 const std::string &gotoLabel, StringBuilder &sb, const std::string &prefix) const override; 35 void EmitCProxyReadVar(const std::string &parcelName, const std::string &name, bool isInnerType, 36 const std::string &ecName, const std::string &gotoLabel, StringBuilder &sb, 37 const std::string &prefix) const override; 39 …void EmitCStubReadVar(const std::string &parcelName, const std::string &name, const std::string &e… [all …]
|
D | ast_integer_type.h | 22 std::string ToString() const override; 26 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override; 28 std::string EmitCppType(TypeMode mode = TypeMode::NO_MODE) const override; 30 std::string EmitJavaType(TypeMode mode, bool isInnerType = false) const override; 32 …void EmitCWriteVar(const std::string &parcelName, const std::string &name, const std::string &ecNa… 33 const std::string &gotoLabel, StringBuilder &sb, const std::string &prefix) const override; 35 void EmitCProxyReadVar(const std::string &parcelName, const std::string &name, bool isInnerType, 36 const std::string &ecName, const std::string &gotoLabel, StringBuilder &sb, 37 const std::string &prefix) const override; 39 …void EmitCStubReadVar(const std::string &parcelName, const std::string &name, const std::string &e… [all …]
|
D | ast_short_type.h | 22 std::string ToString() const override; 26 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override; 28 std::string EmitCppType(TypeMode mode = TypeMode::NO_MODE) const override; 30 std::string EmitJavaType(TypeMode mode, bool isInnerType = false) const override; 32 …void EmitCWriteVar(const std::string &parcelName, const std::string &name, const std::string &ecNa… 33 const std::string &gotoLabel, StringBuilder &sb, const std::string &prefix) const override; 35 void EmitCProxyReadVar(const std::string &parcelName, const std::string &name, bool isInnerType, 36 const std::string &ecName, const std::string &gotoLabel, StringBuilder &sb, 37 const std::string &prefix) const override; 39 …void EmitCStubReadVar(const std::string &parcelName, const std::string &name, const std::string &e… [all …]
|
D | ast_long_type.h | 22 std::string ToString() const override; 26 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override; 28 std::string EmitCppType(TypeMode mode = TypeMode::NO_MODE) const override; 30 std::string EmitJavaType(TypeMode mode, bool isInnerType = false) const override; 32 …void EmitCWriteVar(const std::string &parcelName, const std::string &name, const std::string &ecNa… 33 const std::string &gotoLabel, StringBuilder &sb, const std::string &prefix) const override; 35 void EmitCProxyReadVar(const std::string &parcelName, const std::string &name, bool isInnerType, 36 const std::string &ecName, const std::string &gotoLabel, StringBuilder &sb, 37 const std::string &prefix) const override; 39 …void EmitCStubReadVar(const std::string &parcelName, const std::string &name, const std::string &e… [all …]
|
D | ast_fd_type.h | 22 std::string ToString() const override; 26 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override; 28 std::string EmitCppType(TypeMode mode = TypeMode::NO_MODE) const override; 30 std::string EmitJavaType(TypeMode mode, bool isInnerType = false) const override; 32 …void EmitCWriteVar(const std::string &parcelName, const std::string &name, const std::string &ecNa… 33 const std::string &gotoLabel, StringBuilder &sb, const std::string &prefix) const override; 35 void EmitCProxyReadVar(const std::string &parcelName, const std::string &name, bool isInnerType, 36 const std::string &ecName, const std::string &gotoLabel, StringBuilder &sb, 37 const std::string &prefix) const override; 39 …void EmitCStubReadVar(const std::string &parcelName, const std::string &name, const std::string &e… [all …]
|
D | ast_native_buffer_type.h | 22 std::string ToString() const override; 26 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override; 28 std::string EmitCppType(TypeMode mode = TypeMode::NO_MODE) const override; 30 …void EmitCWriteVar(const std::string &parcelName, const std::string &name, const std::string &ecNa… 31 const std::string &gotoLabel, StringBuilder &sb, const std::string &prefix) const override; 33 void EmitCProxyReadVar(const std::string &parcelName, const std::string &name, bool isInnerType, 34 const std::string &ecName, const std::string &gotoLabel, StringBuilder &sb, 35 const std::string &prefix) const override; 37 …void EmitCStubReadVar(const std::string &parcelName, const std::string &name, const std::string &e… 38 const std::string &gotoLabel, StringBuilder &sb, const std::string &prefix) const override; [all …]
|
D | ast_uchar_type.h | 22 std::string ToString() const override; 26 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override; 28 std::string EmitCppType(TypeMode mode = TypeMode::NO_MODE) const override; 30 std::string EmitJavaType(TypeMode mode, bool isInnerType = false) const override; 32 …void EmitCWriteVar(const std::string &parcelName, const std::string &name, const std::string &ecNa… 33 const std::string &gotoLabel, StringBuilder &sb, const std::string &prefix) const override; 35 void EmitCProxyReadVar(const std::string &parcelName, const std::string &name, bool isInnerType, 36 const std::string &ecName, const std::string &gotoLabel, StringBuilder &sb, 37 const std::string &prefix) const override; 39 …void EmitCStubReadVar(const std::string &parcelName, const std::string &name, const std::string &e… [all …]
|
D | ast_uint_type.h | 22 std::string ToString() const override; 26 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override; 28 std::string EmitCppType(TypeMode mode = TypeMode::NO_MODE) const override; 30 std::string EmitJavaType(TypeMode mode, bool isInnerType = false) const override; 32 …void EmitCWriteVar(const std::string &parcelName, const std::string &name, const std::string &ecNa… 33 const std::string &gotoLabel, StringBuilder &sb, const std::string &prefix) const override; 35 void EmitCProxyReadVar(const std::string &parcelName, const std::string &name, bool isInnerType, 36 const std::string &ecName, const std::string &gotoLabel, StringBuilder &sb, 37 const std::string &prefix) const override; 39 …void EmitCStubReadVar(const std::string &parcelName, const std::string &name, const std::string &e… [all …]
|
D | ast_ulong_type.h | 22 std::string ToString() const override; 26 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override; 28 std::string EmitCppType(TypeMode mode = TypeMode::NO_MODE) const override; 30 std::string EmitJavaType(TypeMode mode, bool isInnerType = false) const override; 32 …void EmitCWriteVar(const std::string &parcelName, const std::string &name, const std::string &ecNa… 33 const std::string &gotoLabel, StringBuilder &sb, const std::string &prefix) const override; 35 void EmitCProxyReadVar(const std::string &parcelName, const std::string &name, bool isInnerType, 36 const std::string &ecName, const std::string &gotoLabel, StringBuilder &sb, 37 const std::string &prefix) const override; 39 …void EmitCStubReadVar(const std::string &parcelName, const std::string &name, const std::string &e… [all …]
|
D | ast_ushort_type.h | 22 std::string ToString() const override; 26 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override; 28 std::string EmitCppType(TypeMode mode = TypeMode::NO_MODE) const override; 30 std::string EmitJavaType(TypeMode mode, bool isInnerType = false) const override; 32 …void EmitCWriteVar(const std::string &parcelName, const std::string &name, const std::string &ecNa… 33 const std::string &gotoLabel, StringBuilder &sb, const std::string &prefix) const override; 35 void EmitCProxyReadVar(const std::string &parcelName, const std::string &name, bool isInnerType, 36 const std::string &ecName, const std::string &gotoLabel, StringBuilder &sb, 37 const std::string &prefix) const override; 39 …void EmitCStubReadVar(const std::string &parcelName, const std::string &name, const std::string &e… [all …]
|
D | ast_struct_type.h | 25 inline void SetName(const std::string &name) override in SetName() 30 inline std::string GetName() override in GetName() 52 void AddMember(const AutoPtr<ASTType> &typeName, std::string name); 59 inline std::string GetMemberName(size_t index) in GetMemberName() 62 return std::string(""); in GetMemberName() 77 std::string Dump(const std::string &prefix) override; 81 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override; 83 std::string EmitCppType(TypeMode mode = TypeMode::NO_MODE) const override; 85 std::string EmitJavaType(TypeMode mode, bool isInnerType = false) const override; 87 std::string EmitCTypeDecl() const; [all …]
|
D | ast_union_type.h | 25 inline void SetName(const std::string &name) override in SetName() 30 inline std::string GetName() override in GetName() 52 void AddMember(const AutoPtr<ASTType> &typeName, std::string name); 59 inline std::string GetMemberName(size_t index) in GetMemberName() 62 return std::string(""); in GetMemberName() 77 std::string Dump(const std::string &prefix) override; 81 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override; 83 std::string EmitCppType(TypeMode mode = TypeMode::NO_MODE) const override; 85 std::string EmitJavaType(TypeMode mode, bool isInnerType = false) const override; 87 std::string EmitCTypeDecl() const; [all …]
|
D | ast_type.h | 66 using UtilMethod = std::function<void(StringBuilder &, const std::string &, const std::string &, bo… 67 using UtilMethodMap = std::unordered_map<std::string, UtilMethod>; 76 virtual void SetName(const std::string &name); 78 virtual std::string GetName(); 138 virtual std::string ToShortString(); 140 std::string ToString() const override; 144 virtual std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const; 146 virtual std::string EmitCppType(TypeMode mode = TypeMode::NO_MODE) const; 148 virtual std::string EmitJavaType(TypeMode mode, bool isInnerType = false) const; 150 …virtual void EmitCWriteVar(const std::string &parcelName, const std::string &name, const std::stri… [all …]
|
D | ast_parameter.h | 21 ASTParameter(const std::string &name, ParamAttr attribute, const AutoPtr<ASTType> &type) in ASTParameter() 26 …ASTParameter(const std::string &name, const AutoPtr<ASTParamAttr> &attribute, const AutoPtr<ASTTyp… in ASTParameter() 31 inline std::string GetName() in GetName() 46 std::string Dump(const std::string &prefix) override; 48 std::string EmitCParameter(); 50 std::string EmitCppParameter(); 52 std::string EmitJavaParameter(); 54 std::string EmitCLocalVar(); 56 std::string EmitCppLocalVar(); 58 std::string EmitJavaLocalVar() const; [all …]
|
D | ast_enum_type.h | 23 explicit ASTEnumValue(const std::string &name) : mName_(name), value_(nullptr) {} in ASTEnumValue() 27 inline std::string GetName() in GetName() 53 std::string mName_; 62 inline void SetName(const std::string &name) override in SetName() 67 inline std::string GetName() override in GetName() 113 std::string Dump(const std::string &prefix) override; 117 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override; 119 std::string EmitCppType(TypeMode mode = TypeMode::NO_MODE) const override; 121 std::string EmitJavaType(TypeMode mode, bool isInnerType = false) const override; 123 std::string EmitCTypeDecl() const; [all …]
|
D | ast_sequenceable_type.h | 24 std::string Dump(const std::string &prefix) override; 28 std::string GetFullName() const; 30 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override; 32 std::string EmitCppType(TypeMode mode = TypeMode::NO_MODE) const override; 34 std::string EmitJavaType(TypeMode mode, bool isInnerType = false) const override; 36 void EmitCppWriteVar(const std::string &parcelName, const std::string &name, StringBuilder &sb, 37 const std::string &prefix, unsigned int innerLevel = 0) const override; 39 void EmitCppReadVar(const std::string &parcelName, const std::string &name, StringBuilder &sb, 40 const std::string &prefix, bool initVariable, unsigned int innerLevel = 0) const override; 42 … void EmitCppMarshalling(const std::string &parcelName, const std::string &name, StringBuilder &sb, [all …]
|
D | ast_type.cpp | 13 void ASTType::SetName(const std::string &name) in SetName() 18 std::string ASTType::GetName() in GetName() 168 std::string ASTType::ToShortString() in ToShortString() 173 std::string ASTType::ToString() const in ToString() 183 std::string ASTType::EmitCType(TypeMode mode) const in EmitCType() 188 std::string ASTType::EmitCppType(TypeMode mode) const in EmitCppType() 193 std::string ASTType::EmitJavaType(TypeMode mode, bool isInnerType) const in EmitJavaType() 198 void ASTType::EmitCWriteVar(const std::string &parcelName, const std::string &name, const std::stri… in EmitCWriteVar() 199 const std::string &gotoLabel, StringBuilder &sb, const std::string &prefix) const in EmitCWriteVar() 204 …id ASTType::EmitCProxyWriteOutVar(const std::string &parcelName, const std::string &name, const st… in EmitCProxyWriteOutVar() [all …]
|
/drivers/hdf_core/framework/tools/hdi-gen/codegen/ |
D | c_client_proxy_code_emitter.h | 23 bool ResolveDirectory(const std::string &targetDirectory) override; 51 …void EmitProxyMethodBody(const AutoPtr<ASTMethod> &method, StringBuilder &sb, const std::string &p… 53 void EmitCreateBuf(const std::string &dataBufName, 54 const std::string &replyBufName, StringBuilder &sb, const std::string &prefix) const; 56 void EmitCheckThisPointer(StringBuilder &sb, const std::string &prefix) const; 58 …void EmitWriteInterfaceToken(const std::string &dataBufName, StringBuilder &sb, const std::string … 61 const std::string &dataBufName, StringBuilder &sb, const std::string &prefix) const; 63 void EmitReleaseBuf(const std::string &dataBufName, 64 const std::string &replyBufName, StringBuilder &sb, const std::string &prefix) const; 66 …void EmitReadProxyMethodParameter(const AutoPtr<ASTParameter> ¶m, const std::string &parcelNam… [all …]
|
D | code_emitter.h | 30 HeaderFile(HeaderFileType type, std::string fileName) : type_(type), fileName_(fileName) {} in HeaderFile() 48 std::string ToString() const in ToString() 68 std::string fileName_; 75 bool OutPut(const AutoPtr<AST> &ast, const std::string &targetDirectory, GenMode mode); 78 bool Reset(const AutoPtr<AST> &ast, const std::string &targetDirectory, GenMode mode); 82 virtual bool ResolveDirectory(const std::string &targetDirectory) = 0; 88 std::string GetFileParentPath(const std::string &outDir) const; 90 std::string PackageToFilePath(const std::string &packageName) const; 92 std::string EmitMethodCmdID(const AutoPtr<ASTMethod> &method); 94 virtual void EmitInterfaceMethodCommands(StringBuilder &sb, const std::string &prefix); [all …]
|
/drivers/hdf_core/framework/tools/hdi-gen/util/ |
D | string_helper.h | 20 static std::vector<std::string> Split(std::string sources, const std::string &limit); 22 static bool StartWith(const std::string &value, char prefix); 24 static bool StartWith(const std::string &value, const std::string &prefix); 26 static bool EndWith(const std::string &value, char suffix); 28 static bool EndWith(const std::string &value, const std::string &suffix); 30 static std::string Replace(const std::string &value, char oldChar, char newChar); 32 …static std::string Replace(const std::string &value, const std::string &oldstr, const std::string … 34 static std::string Replace( 35 … const std::string &value, size_t position, const std::string &substr, const std::string &newstr); 37 …static std::string Replace(const std::string &value, size_t position, size_t len, const std::strin… [all …]
|