Timeline for Use abstract factory (or an alternative way) to produce an instance of a subclass?
Current License: CC BY-SA 4.0
11 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 30, 2022 at 9:01 | vote | accept | JansthcirlU | ||
| Feb 18, 2022 at 16:40 | comment | added | X.Otano | This question is like the Bible OMG | |
| Feb 18, 2022 at 15:06 | comment | added | JansthcirlU | @pjc50 that's what happens internally when the DataInterpreter.GetStoredData() method is called | |
| Feb 18, 2022 at 12:00 | comment | added | pjc50 | You could separate the COM port/reader side by having a RawTagData class which gets passed to all the various interpreters. Think of it like deserialising JSON: you have something which takes a string or a stream and emits classes, but doesn't know where that data comes from. | |
| Feb 18, 2022 at 9:39 | history | edited | JansthcirlU | CC BY-SA 4.0 | Updated the question with an MVE of what I ended up doing |
| Feb 13, 2022 at 10:40 | answer | added | Flater | timeline score: 1 | |
| Feb 11, 2022 at 18:09 | comment | added | candied_orange | Does the consumer of this factory know what data type they expect? | |
| Feb 11, 2022 at 16:56 | answer | added | Buschwichtel | timeline score: 2 | |
| Feb 11, 2022 at 16:49 | answer | added | Robert Bräutigam | timeline score: 1 | |
| Feb 11, 2022 at 15:23 | comment | added | JansthcirlU | I've concluded that my desired approach is probably impossible, but I'm leaving my question open for feedback. | |
| Feb 11, 2022 at 14:37 | history | asked | JansthcirlU | CC BY-SA 4.0 |