Changeset 11 in libcf++ for trunk/include/cf/bin.h


Ignore:
Timestamp:
06/08/15 21:27:49 (9 years ago)
Author:
cheese
Message:

#1 add new interfaces for bin and task

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/cf/bin.h

    r7 r11  
    1111
    1212#include <vector>
     13#include <string>
    1314#include <stdio.h>
    1415
     
    3839         * @param in asciiz-byte
    3940         */
    40         bin(const cf::char_t * in);
     41        bin(const std::string & in);
    4142
    4243        /**
     
    116117
    117118        /**
    118          * set 
     119         * set
    119120         * @param in bin
    120121         */
    121122        bin & operator =(const bin & in);
     123
     124        /**
     125         * set
     126         * @param in string
     127         */
     128        bin & operator =(const std::string & in);
    122129
    123130        /**
     
    151158
    152159        /**
     160         * get a byte
     161         * @return a byte
     162         * @param index index
     163         */
     164        cf::uint8_t operator [](const cf::size_t index) const;
     165
     166        /**
     167         * get as string
     168         * @return string
     169         */
     170        std::string toString() const;
     171
     172        /**
    153173         * dump binary to file-pointer
    154174         * @param prefix prefix for output
Note: See TracChangeset for help on using the changeset viewer.