blob: d697263c28cbf22c5e7ddba37dfc0f33eeaa1079 [file] [log] [blame]
Christopher Piro094823a2007-07-18 00:26:12 +00001%%% Copyright (c) 2007- Facebook
2%%% Distributed under the Thrift Software License
3%%%
4%%% See accompanying file LICENSE or visit the Thrift site at:
5%%% http://developers.facebook.com/thrift/
6
7-module(tProtocolFactory).
8
9-include("oop.hrl").
10
11-include("thrift.hrl").
12-include("protocol/tProtocolFactory.hrl").
13
14-behavior(oop).
15
16-export([attr/4, super/0, inspect/1]).
17
18-export([new/0, getProtocol/2]).
19
20%%%
21%%% define attributes
22%%% 'super' is required unless ?MODULE is a base class
23%%%
24
25?ATTR_DUMMY.
26
27%%%
28%%% behavior callbacks
29%%%
30
31%%% super() -> SuperModule = atom()
32%%% | none
33
34super() ->
35 none.
36
37%%% inspect(This) -> string()
38
39inspect(_This) ->
40 "".
41
42%%%
43%%% class methods
44%%%
45
46new() ->
47 #?MODULE{}.
48
49%%%
50%%% instance methods
51%%%
52
53getProtocol(This, Trans) ->
54 nil.