OSDN Git Service

eltorito.hpp: とりあえず一旦commitじゃ!
authorMyun2 <myun2@nwhite.info>
Sun, 8 Aug 2010 02:44:41 +0000 (11:44 +0900)
committerMyun2 <myun2@nwhite.info>
Sun, 8 Aug 2010 02:44:41 +0000 (11:44 +0900)
roast/include/roast/lexical/string_rule.hpp
roast_ex/include/roast/file/iso9660/eltorito.hpp

index ab2180e..0839c4f 100644 (file)
@@ -214,6 +214,12 @@ namespace roast
                                }
                        };
 
+#define ROAST_LEXICAL_FIXSTR(CLS,S)    \
+                       class CLS : public fixed_string \
+                       {       \
+                       public: \
+                               CLS() : fixed_string(S){} };
+
                        ///////////////////////////////////////////////////////////////////
                }
        }
index a01b10c..626db51 100644 (file)
@@ -17,7 +17,24 @@ namespace roast
                {
                        using namespace ::roast::lexical::rule;
 
-                       typedef soft_repeat< unibyte<0>, 0x8800 > rule;
+                       //class str_CD001 : public fixed_string{ public: str_CD001()
+                       ROAST_LEXICAL_FIXSTR(str_CD001, "CD001")
+                       ROAST_LEXICAL_FIXSTR(str_ELTORITOSPEC, "EL TORITO SPECIFICATION")       //      23byte
+
+                       typedef seq<
+                               soft_repeat< unibyte<0>, 0x8800 >,
+
+                               unibyte<0>,                                                     //      Volume Descriptor Type
+                               str_CD001,
+                               unibyte<1>,                                                     //      Volume Descriptor Version
+                               str_ELTORITOSPEC,                                       //      System Descriptor (32byte)
+                               soft_repeat< unibyte<0>, 0x8800 >       //      
+                       > _volume_desc;
+
+
+                       typedef seq<
+                               
+                       > rule;
                }
 
                class eltorito_writer