List:MySQL++« Previous MessageNext Message »
From:Warren Young Date:November 22 2006 12:09am
Subject:Re: SSQLS v2 :)
View as plain text  
Королев Илья wrote:
> 
> I'm studying expanded SSQLS code and I have a question.
> As I can see,  field_list() (for example) return a temporary object of 
> <ClassName>_field_list. And real output to stream operate with it. I wonder, 
> what are advantages of such approach? Why we can't just return std::string in 
> field_list()? Disadvantage is heavy *.h.

The advantage is that a list of field names is more flexible than a 
single string listing the fields.  This advantage matters if you don't 
need all of the fields, or you need to have them in multiple formats.  I 
would only let you change this as you suggest if you can prove that all 
uses of the field list objects only need the fields in a single format, 
and they need all of them, always.
Thread
SSQLS v2 :)Королев Илья21 Nov
  • Re: SSQLS v2 :)Warren Young22 Nov
    • Re: SSQLS v2 :)Королев Илья22 Nov
      • Re: SSQLS v2 :)Королев Илья22 Nov
        • Re: SSQLS v2 :)Королев Илья23 Nov
          • Re: SSQLS v2 :)Warren Young28 Nov
            • Re: SSQLS v2 :)Королев Илья28 Nov
              • Re: SSQLS v2 :)Warren Young29 Nov
                • Re: SSQLS v2 :)Королев Илья25 Dec
                  • Re: SSQLS v2 :)Королев Илья26 Dec
                    • Re: SSQLS v2 :)Королев Илья27 Dec
                      • Re: SSQLS v2 :)Королев Илья25 Jan