Date: 15 Apr 2002 14:38:26 -0700 From: Max Okumoto <okumoto@ucsd.edu> To: freebsd-libh@FreeBSD.ORG Subject: cleanup of HSystem 2nd try (stage 3) Message-ID: <hfit6s63sd.fsf@multivac.sdsc.edu>
next in thread | raw e-mail | index | archive | help
* Clean up white space Index: include/HSystem.hh =================================================================== RCS file: /home/libh/cvs/libh/include/HSystem.hh,v retrieving revision 1.8 diff -u -r1.8 HSystem.hh --- include/HSystem.hh 2002/04/15 20:07:25 1.8 +++ include/HSystem.hh 2002/04/15 21:36:02 @@ -49,8 +49,7 @@ /** * Represent a libh subsystem object interface generator. */ -class HSystem -{ +class HSystem { /* * Types used to simplify code. */ @@ -59,23 +58,23 @@ typedef LanguageInterface::Object::CallbackDescription CallBackDesc; public: - typedef list<const ClassDesc *> Descriptions; - typedef set<string> Includes; - typedef list<const char*> CommandAccessToRegister; - typedef list<pair<string,string> > StaticMethods; + typedef list<const ClassDesc *> Descriptions; + typedef set<string> Includes; + typedef list<const char*> CommandAccessToRegister; + typedef list<pair<string,string> > StaticMethods; /** * Constructor. */ - HSystem( const string& aName ) - : name( aName ) {} + HSystem(const string& aName) + : name(aName) {} /** * Copy constructor. XXX This is broken! None of the other state is * copied! */ - HSystem( const HSystem& aHSystem ) - : name( aHSystem.name ) {} + HSystem(const HSystem& aHSystem) + : name(aHSystem.name) {} /** * Adds the class description and include file to the system definition. @@ -85,58 +84,59 @@ * * @see find_classes_descriptions.pl */ - void add_class(const ClassDesc *class_desc, const string& include_file) - { - descriptions.push_back( class_desc ); - includes.insert( include_file ); - } + void + add_class(const ClassDesc *class_desc, const string& include_file) + { + descriptions.push_back(class_desc); + includes.insert(include_file); + } /** * Output header and includes. The output text contains a * warning that it is a generated source file. - * - * @param out stream to send text. + * + * @param out stream to send text. */ - void gen_header( ostream& out ); + void gen_header(ostream& out); - void gen_classes_interfaces( ostream& out ); - void gen_register_command_access( ostream& out ); + void gen_classes_interfaces(ostream& out); + void gen_register_command_access(ostream& out); /** * Output comment marking end of file. - * - * @param out stream to send text. + * + * @param out stream to send text. */ - void gen_footer( ostream& out ); + void gen_footer(ostream& out); - Descriptions descriptions; - Includes includes; - CommandAccessToRegister commandAccessToRegister; - StaticMethods staticMethods; + Descriptions descriptions; + Includes includes; + CommandAccessToRegister commandAccessToRegister; + StaticMethods staticMethods; - string name; + string name; /** * LessThan operator. * * @param rhs Right hand side of the less than operator. */ - bool operator < (const HSystem& rhs ) const { return name < rhs.name; } + bool operator<(const HSystem& rhs) const { return name < rhs.name; } /** * Equivilance operator. * * @param rhs Right hand side of the Equivilance operator. */ - bool operator == ( const HSystem& rhs ) const { return name == rhs.name; } + bool operator==(const HSystem& rhs) const { return name == rhs.name; } private: - void gen_class_header(ostream& out, const ClassDesc *cd); - void gen_callback_interfaces(ostream& out, const ClassDesc *cd); - void gen_dynamic_methods_interfaces(ostream& out, const ClassDesc *cd); - void gen_static_method_interfaces(ostream& out, const ClassDesc *cd); - string gen_result_to_obj(MethodDesc::Value t ); - string gen_method_argument(MethodDesc::Value t, int argno, int method_argno, bool last_arg_in_set_method ); + void gen_class_header(ostream& out, const ClassDesc *cd); + void gen_callback_interfaces(ostream& out, const ClassDesc *cd); + void gen_dynamic_methods_interfaces(ostream& out, const ClassDesc *cd); + void gen_static_method_interfaces(ostream& out, const ClassDesc *cd); + string gen_result_to_obj(MethodDesc::Value t); + string gen_method_argument(MethodDesc::Value t, int argno, int method_argno, bool last_arg_in_set_method); }; // class HSystem @@ -160,9 +160,9 @@ * each subsystem. * * @see find_classes_descriptions.pl - * @param systems the set of HSystem objects to add the subsystem to + * @param systems the set of HSystem objects to add the subsystem to */ -void build_systems( Systems& systems ); +void build_systems(Systems& systems); //====================================================================== To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?hfit6s63sd.fsf>