Doxygen - Inline comments in Python
Hi,
I'm trying to generate the following Doxygen output for a Python script:
ordertype_TIF_tests::sell_mkt_day_multifillpartial Namespace Reference
(Sell; multiple partial fills) Market Day order More...
--------------------------------------------------------------------------------
Detailed Description
(Sell; multiple partial fills) Market Day order
Place a sell order for 20
Fill for quantity 8
Fill for quantity 7
I've been able to generate this with the code below.
I would like to keep the comments inline, so when someone looks at the code, the can understand what the statement below each comment does.
## @package ordertype_TIF_tests.sell_mkt_day_multifillpartial
# (Sell; multiple partial fills) Market Day order
from foundation import *
from notification import *
from order_management import *
from algo_helper import *
from position_management import *
def ClientExchange():
o = sendOrderSingle(Side = "2", sb = "DAB.L", oq = 20)
## @package ordertype_TIF_tests.sell_mkt_day_multifillpartial
# @details Place a sell order for 20
s = waitOrderSingle(oq = 20)
acceptOrderSingle(s)
waitNewAck(order = o)
## @package ordertype_TIF_tests.sell_mkt_day_multifillpartial
# @details Fill for quantity 8
sendTrade(s, 8, 142)
## @package ordertype_TIF_tests.sell_mkt_day_multifillpartial
# @details Fill for quantity 7
sendTrade(s, 7, 142)
waitOrderEvents(dict(tp = Trade, order = o, LastPx = 142, LastQty = 8), dict(tp = Trade, order = o, LastPx = 142, LastQty = 7))
stopPlay()
Is there a way to generate the same output without repeating the @package statement over and over?
Any advice would be much appreciated!
--pyqaz
|