There are dozens of network protocols and file formats (WAV, TCP, BMP, etc.).
Is there a solution for creating an abstraction layer between the protocol implementation and the code using the resulting data?
Take the wav file. A software component may contain logic to identify cartridges and analyze them into classes. The user of this component will not need to know if the number of channels is stored in two or four bytes.
The specification of the WAV format is no different from hundreds of other formats and protocols, so why not create a common solution? To create an even better abstraction, the protocol specification can be stored in XML. I was not lucky to find anything like that. Can you point me in the right direction?
EDIT: This is clearly not a problem that is easily mailed. The current answers are not really what I'm looking for, but I would like to thank everyone for at least giving him a chance.
source
share