Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
cScriptSection.h
Go to the documentation of this file.
1 //
4 //
5 
6 #ifndef _INC_cScriptSection_H
7 #define _INC_cScriptSection_H
8 #ifndef NO_PRAGMA_ONCE
9 #pragma once
10 #endif
11 
12 #include "../Scriptable/IScriptableObj.h"
13 #include "../Scriptable/cScriptableInterface.h"
14 #include "../ScriptContext/cScriptSourceCurrent.h"
15 #include "GrayCore/include/cHeap.h"
17 
18 namespace GrayLib
19 {
21  : public cIniSectionEntry
22  , public IScriptableGetter
23  , public IScriptableEnumerator
24  // , public IScriptableSetter
25  {
30 
31  typedef cIniSection SUPER_t;
32 
33  public:
34  cScriptSection( cStringT<IniChar_t> sSectionTitle="", bool bStripped = false, int iLine=0 );
35  cScriptSection( const cScriptSection& rSectionCopy );
36  virtual ~cScriptSection();
37 
39  ITERATE_t FindTriggerNumber( int iTrigVal ) const;
40  ITERATE_t FindTriggerEnum( int iEnum ) const;
41 
42  STDMETHOD(s_GetEnum)( ITERATE_t i, OUT cStringA& rsPropName, OUT cVariant& vValRet );
43  STDMETHOD(s_GetByName)( const ATOMCHAR_t* pszPropName, OUT cVariant& vValRet );
44  };
45 
47 
48 #ifdef USE_ISCRIPTABLE
50  {
54  public:
56  public:
57  cScriptSourceSection( cScriptSection* pSection, cString sSourceFile );
59  virtual cStringA get_SourceDesc() const;
60  };
61 #endif
62 };
63 
64 #endif // cScriptSection
#define GRAYLIB_LINK
Definition: GrayLibBase.h:35
Definition: cScriptSection.h:25
Definition: cScriptSourceCurrent.h:17
Definition: cScriptSection.h:50
cScriptSourceSection(cScriptSection *pSection, cString sSourceFile)
virtual cStringA get_SourceDesc() const
cScriptSectionPtr m_pSection
Definition: cScriptSection.h:55
Definition: cVariant.h:26
Definition: cIniSection.h:71
Definition: cIniSection.h:244
Definition: cIniSection.h:195
Definition: IScriptableObj.h:38
Definition: IScriptableObj.h:51
Definition: cMesh.h:22
cRefPtr< cScriptSection > cScriptSectionPtr
Definition: cScriptSection.h:46
int ITERATE_t
like size_t but signed
Definition: Index.h:28
char ATOMCHAR_t
the char form (UNICODE or not) for an atom. (for symbolic names)
Definition: StrConst.h:15