-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create a new interface for abstracting the string literal encoding format #23
Comments
A factory class (ie CppEncoderFactory) may have to be created to centralize the parsing of aguments into an implementation of ICppEncoder. |
The IGenerator class may have to be modified with a new parameter for getting an instance of ICppEncoder. |
Command line parameter should be --encoding=hex or --encoding=oct with oct as default value. |
Do not create a ICppEncoder interface or a factory. Simply create the following: enum CppEncoderEnum
{
CPP_ENCODER_HEX,
CPP_ENCODER_OCT,
}; and add create the following methods in the IGenerator interface: virtual void setCppEncoder(const CppEncoderEnum & iCppEncoder) = 0;
virtual CppEncoderEnum getCppEncoder() const = 0; |
…literal encoding format * Created new unit tests: TestCLI.testEncoding(), TestExtraction.testEncodingOct() and TestExtraction.testEncodingHex() * Created new API functions: capitalizeFirstCharacter(), uppercase() and lowercase(). * Created new command line argument: --encoding=<value> to support the desired encoding.
Create the ICppEncoder interface which has 2 implementations:
The text was updated successfully, but these errors were encountered: