[ 
https://issues.apache.org/jira/browse/AVRO-1370?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16960825#comment-16960825
 ] 

Thiruvalluvan M. G. commented on AVRO-1370:
-------------------------------------------

The reason we generate a single header file is that all definitions can be put 
there and the code generator knows which items have been defined and which are 
not. if we split across multiple files, we would end up including one header 
into another causing complex dependencies. Not that it is impossible to split 
into multiple files, but it is quite a bit of work. Moreover users of the 
generated code should now include headers selectively. (We can solve this 
problem specificlly by having multiple header files and one "uber" header file 
which include all others).

Hopefully modern versions of Visual C++ does not have the problems [~ramanasv] 
mentioned.

Since no progress has been made for six years, I don't see a point keeping this 
open any more. Is it okay to close this as "WONTFIX"?

> C++ code generation should generate individual header files for each type
> -------------------------------------------------------------------------
>
>                 Key: AVRO-1370
>                 URL: https://issues.apache.org/jira/browse/AVRO-1370
>             Project: Apache Avro
>          Issue Type: Improvement
>          Components: c++
>    Affects Versions: 1.7.4
>            Reporter: Ramana Suvarapu
>            Priority: Major
>
> Currently C++ code generation generates single header file which inludes all 
> the type definitions and encoding and decoding of the types. When generated 
> header file is huge, we are experiencing issues when debugging in VS2010.
> The issues are 
> 1) Unable to set the breake point at desired location.
> 2) When compilation errors occur, doube click on an error taking the control 
> to wrong location of the file.
> If split the file into mulitple parts, then it works. Is it possible to make 
> the changes to codegeneration to do generate mulitple header files for type?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to