On 2011.02.25 15:23, Jack wrote: > I assume I'm simply missing something obvious about misuse of local > vs. > class variables. I've tried defining allTraits in various places, > with > no luck yet. I'm trying to work thorough more of the examples, but I > haven't found any that have provided the necessary clue yet.
Sorry to answer my own message, but I finally actually paid attention to the details :-) I was starting to think my issue was simply due to a poor overall organization of my app. I'm having trouble following many of the examples, but I do see that I really don't have a good feel for how to divide things between different classes and different files - so I suspected that the "are private" issues are because I don't have the right relation between the class where I've defined the persist for my database object and the object for which I'm trying to call the query. As I was thinking of how to simplify or reorganize, I looked again at the dbo tutorial. I'm not sure how I noticed, but all I had to do was move the "public:" in the Trait class definition above the persist piece. I'm still not sure why the persist stuff shouldn't be OK being private to the class, since I am only trying to access it within a function in the class - or is it because it's a public function, and therefore will end up being called in a place where the private stuff will not be accessible? Anyway, thanks for the ongoing help, and I'm sure I'll be back next time I get stuck. Jack ------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
