blob: 7957bdea83da8b5c6324c9a35c6af4dddff29d0b [file] [log] [blame]
Andreas Huber295ad302016-08-16 11:35:00 -07001#ifndef GENERIC_BINDER_H_
2
3#define GENERIC_BINDER_H_
4
5#include "Type.h"
6
7namespace android {
8
9struct GenericBinder : public Type {
10 GenericBinder();
11
12 bool isBinder() const override;
13
14 std::string getCppType(StorageMode mode, std::string *extra) const override;
15 std::string getJavaType() const override;
16
17 void emitReaderWriter(
18 Formatter &out,
19 const std::string &name,
20 const std::string &parcelObj,
21 bool parcelObjIsPointer,
22 bool isReader,
23 ErrorMode mode) const override;
24
25 void emitJavaReaderWriter(
26 Formatter &out,
27 const std::string &parcelObj,
28 const std::string &argName,
29 bool isReader) const override;
30
Zhuoyao Zhang864c7712016-08-16 15:35:28 -070031 status_t emitVtsAttributeType(Formatter &out) const override;
Andreas Huber295ad302016-08-16 11:35:00 -070032};
33
34} // namespace android
35
36#endif // GENERIC_BINDER_H_