Web Service Development Guide : PART V HydraExpress Reference : Chapter 20 The HydraExpress Code Generator : Overwrite Protection
Overwrite Protection
Many generated files are overwrite protected, meaning that if you regenerate code in the same directory as existing code, the generator will not overwrite them. It does this by appending a “.sample” to any new generated files of the same name.
For example, if HydraExpress sees a file named MyServiceImp.cpp, it will not overwrite the file but will instead generate a file called MyServiceImp.cpp.sample.
The files that are overwrite protected are those that are the most likely to be edited, and include the following:
Table 13 – Overwrite Protected Files
File
Overwrite protected name
MySchema_main.cpp
MySchema_main.cpp.sample
MyServiceClient.cpp
MyServiceClient.cpp.sample
MyServiceImp.h
MyServiceImp.cpp
MyServiceImp.h.sample
MyServiceImp.cpp.sample
transports.xml
transports.xml.sample
client-transports.xml
client-transports.sample
<servicecontextname>_handlers.xml
<servicecontextname>_handlers.xml.sample
client-handlers.xml
client-handlers.xml.sample
<servicecontextname>_objects.xml
objects.xml.sample
client-objects.xml
client-objects.xml.sample
makefile
makefile_debug
makefile.sample
makefile_debug.sample
makefile.include
makefile.include.sample
MSVC projects and solutions:
 
MySchema.dsp
MySchema_main.dsp
MySchema.dsw
MySchema.vcproj
MySchema_main.vcproj
MySchema.sln
MySchema.dsp.sample
MySchema_main.dsp.sample
MySchema.dsw.sample
MySchema.vcproj.sample
MySchema_main.vcproj.sample
MySchema.sln.sample
NOTE >> Be aware that, each time the generator runs, it overwrites all files with the .sample extension. If you make changes to these files, be sure you rename them before rerunning the generator in order to preserve your changes.