trick/trick_source/codegen/Interface_Code_Gen/PrintFileContents13.hh
Alex Lin 14a75508a3 Cleaning up once include variables and copyright cleanup.
Changed all header file once include variables to follow the same naming
convention and not start with any underscores.  Also deleted old
incorrect copyright notices.  Also removed $Id: tags from all files.

Fixes #14.  Fixes #22.
2015-03-23 16:03:14 -05:00

58 lines
1.5 KiB
C++

#ifndef PRINTFILECONTENTS13_HH
#define PRINTFILECONTENTS13_HH
#include <string>
#include <vector>
#include <map>
#include <set>
#include "PrintFileContentsBase.hh"
/**
This class prints Trick 13 style io_src code. The print command is called when
the container class has added all of the classes and enumerations to this class
to print.
@author somebody
@date July 2012
*/
class PrintFileContents13 : public PrintFileContentsBase {
public:
PrintFileContents13() ;
/** Prints the io_src header information */
virtual void printIOHeader(std::ofstream & outfile , std::string header_file_name) ;
std::string enumeration_identifier( EnumValues * e );
/** Prints enumeration attributes */
void print_enum_attr(std::ofstream & outfile , EnumValues * in_enum) ;
std::string bit_field_getter_name(ClassValues * c, FieldDescription * f);
std::string bit_field_setter_name(ClassValues * c, FieldDescription * f);
std::string class_identifier( ClassValues * c ) ;
/** Prints attributes for a field */
void print_field_attr(std::ofstream & outfile , ClassValues * c, FieldDescription * fv ) ;
/** Prints class attributes */
void print_class_attr(std::ofstream & outfile , ClassValues * in_class) ;
/** Prints attributes for a class */
virtual void printClass(std::ofstream & outfile , ClassValues * cv) ;
/** Prints attributes for an enum */
virtual void printEnum(std::ofstream & outfile , EnumValues * ev) ;
} ;
#endif