From: Igor Zhbanov <i.zhbanov at samsung.com>
To: powertop@lists.01.org
Subject: Re: [Powertop] [RFC][PATCH] Small rework on report formatter side
Date: Fri, 12 Oct 2012 17:46:10 +0400 [thread overview]
Message-ID: <50781F22.3050805@samsung.com> (raw)
In-Reply-To: 20121010230322.GD4628@swordfish.datadirect.datadirectnet.com
[-- Attachment #1: Type: text/plain, Size: 2278 bytes --]
He Sergey,
Sergey Senozhatsky wrote:
...
> ---
> src/Makefile.am | 1 -
> src/report/basic-report-formatter.h | 65 +++++++++++++
> src/report/report-formatter-base.cpp | 14 +--
> src/report/report-formatter-base.h | 4 +-
> src/report/report-formatter-csv.cpp | 42 --------
> src/report/report-formatter-csv.h | 10 +-
> src/report/report-formatter-html.h | 2 +-
> src/report/report-formatter-null.cpp | 179 -----------------------------------
> src/report/report-formatter-null.h | 66 -------------
> src/report/report-formatter.h | 65 -------------
> src/report/report-maker.cpp | 3 +-
> src/report/report-maker.h | 4 +-
> 12 files changed, 79 insertions(+), 376 deletions(-)
...
> +class basic_report_formatter
> +{
> +public:
> + virtual ~basic_report_formatter() {}
> +
> + virtual void finish_report() {};
> + virtual const char *get_result() {return "Basic report_formatter::get_resul call\n";};
1)
- "Basic report_formatter::get_resul call\n"
+ "basic_report_formatter::get_result call\n"
> + virtual void clear_result() {};
> +
> + virtual void add(const char *str) {};
> + virtual void addv(const char *fmt, va_list ap) {};
> +
> + virtual void add_header(const char *header, int level) {};
> +
> + virtual void begin_section(section_type stype) {};
> + virtual void end_section() {};
> +
> + virtual void begin_table(table_type ttype) {};
> + virtual void end_table() {};
> +
> + virtual void begin_row(row_type rtype) {};
> + virtual void end_row() {};
> +
> + virtual void begin_cell(cell_type ctype) {};
> + virtual void end_cell() {};
> + virtual void add_empty_cell() {};
> +
> + virtual void begin_paragraph() {};
> + virtual void end_paragraph() {};
> +
> + /* For quad-colouring CPU tables in HTML */
> + virtual void set_cpu_number(int nr) {};
> +};
2) You don't need semicolon after closing bracket in class member inline definition in C++.
--
Best regards,
Igor Zhbanov,
Expert Software Engineer,
phone: +7 (495) 797 25 00 ext 3806
e-mail: i.zhbanov(a)samsung.com
ASWG, Moscow R&D center, Samsung Electronics
12 Dvintsev street, building 1
127018, Moscow, Russian Federation
next reply other threads:[~2012-10-12 13:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-12 13:46 Igor Zhbanov [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-10-13 13:31 [Powertop] [RFC][PATCH] Small rework on report formatter side Sergey Senozhatsky
2012-10-11 21:55 Chris Ferron
2012-10-10 23:03 Sergey Senozhatsky
2012-10-10 18:13 Sergey Senozhatsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50781F22.3050805@samsung.com \
--to=powertop@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.