Commit 1efc8620 authored by anozdrin/alik@booka's avatar anozdrin/alik@booka

Polishing: use the same coding style everywhere.

parent 420d8b07
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#pragma once #pragma once
#include "windowsservice.h" #include "windowsservice.h"
class IMService : public WindowsService class IMService: public WindowsService
{ {
public: public:
IMService(void); IMService(void);
......
...@@ -51,7 +51,7 @@ private: ...@@ -51,7 +51,7 @@ private:
Grammar: FLUSH INSTANCES Grammar: FLUSH INSTANCES
*/ */
class Flush_instances : public Command class Flush_instances: public Command
{ {
public: public:
int execute(st_net *net, ulong connection_id); int execute(st_net *net, ulong connection_id);
...@@ -62,7 +62,7 @@ public: ...@@ -62,7 +62,7 @@ public:
Abstract class for Instance-specific commands. Abstract class for Instance-specific commands.
*/ */
class Abstract_instance_cmd : public Command class Abstract_instance_cmd: public Command
{ {
public: public:
Abstract_instance_cmd(const LEX_STRING *instance_name_arg); Abstract_instance_cmd(const LEX_STRING *instance_name_arg);
...@@ -98,7 +98,7 @@ private: ...@@ -98,7 +98,7 @@ private:
Grammar: SHOW INSTANCE STATUS <instance_name> Grammar: SHOW INSTANCE STATUS <instance_name>
*/ */
class Show_instance_status : public Abstract_instance_cmd class Show_instance_status: public Abstract_instance_cmd
{ {
public: public:
Show_instance_status(const LEX_STRING *instance_name_arg); Show_instance_status(const LEX_STRING *instance_name_arg);
...@@ -118,7 +118,7 @@ private: ...@@ -118,7 +118,7 @@ private:
Grammar: SHOW INSTANCE OPTIONS <instance_name> Grammar: SHOW INSTANCE OPTIONS <instance_name>
*/ */
class Show_instance_options : public Abstract_instance_cmd class Show_instance_options: public Abstract_instance_cmd
{ {
public: public:
Show_instance_options(const LEX_STRING *instance_name_arg); Show_instance_options(const LEX_STRING *instance_name_arg);
...@@ -138,7 +138,7 @@ private: ...@@ -138,7 +138,7 @@ private:
Grammar: START INSTANCE <instance_name> Grammar: START INSTANCE <instance_name>
*/ */
class Start_instance : public Abstract_instance_cmd class Start_instance: public Abstract_instance_cmd
{ {
public: public:
Start_instance(const LEX_STRING *instance_name_arg); Start_instance(const LEX_STRING *instance_name_arg);
...@@ -154,7 +154,7 @@ protected: ...@@ -154,7 +154,7 @@ protected:
Grammar: STOP INSTANCE <instance_name> Grammar: STOP INSTANCE <instance_name>
*/ */
class Stop_instance : public Abstract_instance_cmd class Stop_instance: public Abstract_instance_cmd
{ {
public: public:
Stop_instance(const LEX_STRING *instance_name_arg); Stop_instance(const LEX_STRING *instance_name_arg);
...@@ -170,7 +170,7 @@ protected: ...@@ -170,7 +170,7 @@ protected:
Grammar: CREATE INSTANCE <instance_name> [<options>] Grammar: CREATE INSTANCE <instance_name> [<options>]
*/ */
class Create_instance : public Command class Create_instance: public Command
{ {
public: public:
Create_instance(const LEX_STRING *instance_name_arg); Create_instance(const LEX_STRING *instance_name_arg);
...@@ -205,7 +205,7 @@ private: ...@@ -205,7 +205,7 @@ private:
is removed from the instance map. is removed from the instance map.
*/ */
class Drop_instance : public Abstract_instance_cmd class Drop_instance: public Abstract_instance_cmd
{ {
public: public:
Drop_instance(const LEX_STRING *instance_name_arg); Drop_instance(const LEX_STRING *instance_name_arg);
...@@ -222,7 +222,7 @@ protected: ...@@ -222,7 +222,7 @@ protected:
SHOW <instance_name> LOG {ERROR | SLOW | GENERAL} size[, offset_from_end] SHOW <instance_name> LOG {ERROR | SLOW | GENERAL} size[, offset_from_end]
*/ */
class Show_instance_log : public Abstract_instance_cmd class Show_instance_log: public Abstract_instance_cmd
{ {
public: public:
Show_instance_log(const LEX_STRING *instance_name_arg, Show_instance_log(const LEX_STRING *instance_name_arg,
...@@ -249,7 +249,7 @@ private: ...@@ -249,7 +249,7 @@ private:
Grammar: SHOW <instance_name> LOG FILES Grammar: SHOW <instance_name> LOG FILES
*/ */
class Show_instance_log_files : public Abstract_instance_cmd class Show_instance_log_files: public Abstract_instance_cmd
{ {
public: public:
Show_instance_log_files(const LEX_STRING *instance_name_arg); Show_instance_log_files(const LEX_STRING *instance_name_arg);
...@@ -270,7 +270,7 @@ private: ...@@ -270,7 +270,7 @@ private:
class Instance_options_list; class Instance_options_list;
class Abstract_option_cmd : public Command class Abstract_option_cmd: public Command
{ {
public: public:
~Abstract_option_cmd(); ~Abstract_option_cmd();
...@@ -309,7 +309,7 @@ private: ...@@ -309,7 +309,7 @@ private:
Grammar: SET instance_name.option[=option_value][, ...] Grammar: SET instance_name.option[=option_value][, ...]
*/ */
class Set_option : public Abstract_option_cmd class Set_option: public Abstract_option_cmd
{ {
protected: protected:
virtual bool parse_args(const char **text); virtual bool parse_args(const char **text);
...@@ -339,7 +339,7 @@ protected: ...@@ -339,7 +339,7 @@ protected:
just returns NULL. just returns NULL.
*/ */
class Syntax_error : public Command class Syntax_error: public Command
{ {
public: public:
int execute(st_net *net, ulong connection_id); int execute(st_net *net, ulong connection_id);
......
...@@ -65,7 +65,7 @@ public: ...@@ -65,7 +65,7 @@ public:
option. option.
*************************************************************************/ *************************************************************************/
class Print_password_line_cmd : public User_management_cmd class Print_password_line_cmd: public User_management_cmd
{ {
public: public:
Print_password_line_cmd() Print_password_line_cmd()
...@@ -80,7 +80,7 @@ public: ...@@ -80,7 +80,7 @@ public:
Add_user_cmd: support for --add-user command-line option. Add_user_cmd: support for --add-user command-line option.
*************************************************************************/ *************************************************************************/
class Add_user_cmd : public User_management_cmd class Add_user_cmd: public User_management_cmd
{ {
public: public:
Add_user_cmd() Add_user_cmd()
...@@ -95,7 +95,7 @@ public: ...@@ -95,7 +95,7 @@ public:
Drop_user_cmd: support for --drop-user command-line option. Drop_user_cmd: support for --drop-user command-line option.
*************************************************************************/ *************************************************************************/
class Drop_user_cmd : public User_management_cmd class Drop_user_cmd: public User_management_cmd
{ {
public: public:
Drop_user_cmd() Drop_user_cmd()
...@@ -110,7 +110,7 @@ public: ...@@ -110,7 +110,7 @@ public:
Edit_user_cmd: support for --edit-user command-line option. Edit_user_cmd: support for --edit-user command-line option.
*************************************************************************/ *************************************************************************/
class Edit_user_cmd : public User_management_cmd class Edit_user_cmd: public User_management_cmd
{ {
public: public:
Edit_user_cmd() Edit_user_cmd()
...@@ -125,7 +125,7 @@ public: ...@@ -125,7 +125,7 @@ public:
Clean_db_cmd: support for --clean-db command-line option. Clean_db_cmd: support for --clean-db command-line option.
*************************************************************************/ *************************************************************************/
class Clean_db_cmd : public User_management_cmd class Clean_db_cmd: public User_management_cmd
{ {
public: public:
Clean_db_cmd() Clean_db_cmd()
...@@ -140,7 +140,7 @@ public: ...@@ -140,7 +140,7 @@ public:
Check_db_cmd: support for --check-db command-line option. Check_db_cmd: support for --check-db command-line option.
*************************************************************************/ *************************************************************************/
class Check_db_cmd : public User_management_cmd class Check_db_cmd: public User_management_cmd
{ {
public: public:
Check_db_cmd() Check_db_cmd()
...@@ -155,7 +155,7 @@ public: ...@@ -155,7 +155,7 @@ public:
List_users_cmd: support for --list-users command-line option. List_users_cmd: support for --list-users command-line option.
*************************************************************************/ *************************************************************************/
class List_users_cmd : public User_management_cmd class List_users_cmd: public User_management_cmd
{ {
public: public:
List_users_cmd() List_users_cmd()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment