[opengtl-commits] [752] add a constructor to GenerationContext

[ Thread Index | Date Index | More lists.tuxfamily.org/opengtl-commits Archives ]


Revision: 752
Author:   cyrille
Date:     2009-05-30 11:45:06 +0200 (Sat, 30 May 2009)

Log Message:
-----------
add a constructor to GenerationContext

Modified Paths:
--------------
    trunk/OpenGTL/OpenCTL/OpenCTL/templatecompiler/GenerationContext_p.cpp
    trunk/OpenGTL/OpenCTL/OpenCTL/templatecompiler/GenerationContext_p.h


Modified: trunk/OpenGTL/OpenCTL/OpenCTL/templatecompiler/GenerationContext_p.cpp
===================================================================
--- trunk/OpenGTL/OpenCTL/OpenCTL/templatecompiler/GenerationContext_p.cpp	2009-05-29 18:39:59 UTC (rev 751)
+++ trunk/OpenGTL/OpenCTL/OpenCTL/templatecompiler/GenerationContext_p.cpp	2009-05-30 09:45:06 UTC (rev 752)
@@ -25,8 +25,8 @@
 
 using namespace OpenCTL;
 
-// TemplateGenerationContext::TemplateGenerationContext() : m_isLocalContext(false) {
-// }
+TemplateGenerationContext::TemplateGenerationContext( const std::map< GTLCore::String, const GTLCore::Type* >& _namedTypes, const GTLCore::PixelDescription& _pixelDescription ) : m_isLocalContext(false), m_pixelDescription(_pixelDescription), m_namedTypes(_namedTypes) {
+}
 
 void TemplateGenerationContext::startLocalContext(const GTLCore::String& suffix, int _currentChannel) {
   GTL_ASSERT(not m_isLocalContext);

Modified: trunk/OpenGTL/OpenCTL/OpenCTL/templatecompiler/GenerationContext_p.h
===================================================================
--- trunk/OpenGTL/OpenCTL/OpenCTL/templatecompiler/GenerationContext_p.h	2009-05-29 18:39:59 UTC (rev 751)
+++ trunk/OpenGTL/OpenCTL/OpenCTL/templatecompiler/GenerationContext_p.h	2009-05-30 09:45:06 UTC (rev 752)
@@ -28,6 +28,8 @@
 namespace OpenCTL {
   class TemplateGenerationContext {
     public:
+      TemplateGenerationContext( const std::map< GTLCore::String, const GTLCore::Type* >& _namedTypes,
+                                 const GTLCore::PixelDescription& _pixelDescription );
       void startLocalContext(const GTLCore::String& suffix, int _currentChannel);
       void endLocalContext();
       void append(const GTLCore::String& _c);


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/