Ignore:
Timestamp:
Sep 24, 2007, 2:58:10 PM (17 years ago)
Author:
dai_9181
Message:

コンパイラ組み込みテンプレートエンジンを実装。
静的リンクライブラリ、デバッグ情報の内部形式をテキストからバイナリに変更した。

Location:
trunk/abdev/BasicCompiler_Common/include
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/abdev/BasicCompiler_Common/include/BoostSerializationSupport.h

    r279 r322  
    2828    bool WriteXmlString( std::string &xmlString ) const;
    2929
    30     bool ReadBinary( const std::string &filePath, bool isShowExceptionMessage = true );
    31     bool WriteBinary( const std::string &filePath, bool isShowExceptionMessage = true ) const;
     30    bool ReadBinaryFile( const std::string &filePath, bool isShowExceptionMessage = true );
     31    bool WriteBinaryFile( const std::string &filePath, bool isShowExceptionMessage = true ) const;
     32    bool ReadBinaryString( const std::string &binaryString );
     33    bool WriteBinaryString( std::string &binaryString ) const;
    3234
    3335    bool ReadText( const std::string &filePath, bool isShowExceptionMessage = true );
  • trunk/abdev/BasicCompiler_Common/include/Compiler.h

    r308 r322  
    88#include <ObjectModule.h>
    99#include <Linker.h>
     10#include <Delegate.h>
    1011
    1112class Compiler
  • trunk/abdev/BasicCompiler_Common/include/Meta.h

    r288 r322  
    1010#include <Variable.h>
    1111#include <Const.h>
     12#include <Delegate.h>
    1213
    1314class Meta
     
    4344    ProcPointers procPointers;
    4445
     46    // デリゲート
     47    Delegates delegates;
     48
    4549    // XMLシリアライズ用
    4650private:
     
    6064        ar & BOOST_SERIALIZATION_NVP( typeDefs );
    6165        ar & BOOST_SERIALIZATION_NVP( procPointers );
     66        ar & BOOST_SERIALIZATION_NVP( delegates );
    6267    }
    6368
     
    150155    }
    151156
    152     // 関数ポインタ
    153157    ProcPointers &GetProcPointers()
    154158    {
    155159        return procPointers;
    156160    }
     161
     162    Delegates &GetDelegates()
     163    {
     164        return delegates;
     165    }
    157166};
  • trunk/abdev/BasicCompiler_Common/include/Parameter.h

    r206 r322  
    144144        return (int)this->size() * PTR_SIZE;
    145145    }
     146
     147    bool Analyze( const char *sourceOfParams, int nowLine );
    146148};
  • trunk/abdev/BasicCompiler_Common/include/Source.h

    r308 r322  
    11#pragma once
    22
     3#include <map>
     4#include <string>
    35#include <vector>
    4 #include <string>
    56
    67#include <windows.h>
     
    202203    void RemoveReturnLineUnderbar();
    203204
     205    void Initialize( const std::string &source );
     206
    204207public:
    205208    BasicSource(){}
     
    209212    {
    210213    }
     214    BasicSource( const std::string &source )
     215    {
     216        Initialize( source );
     217    }
    211218    ~BasicSource(){}
    212219
     
    257264};
    258265typedef std::vector<BasicSource> BasicSources;
     266
     267class SourceTemplate
     268{
     269    std::string source;
     270public:
     271    SourceTemplate( const std::string &filePath );
     272    ~SourceTemplate()
     273    {
     274    }
     275
     276    std::string GetResult( const std::map<std::string,std::string> &values );
     277};
Note: See TracChangeset for help on using the changeset viewer.