Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Header <boost/asn1/time.hpp>

Time objects for ASN1 library.

The time types use policy objects to define how to calculate data length and execute the actual encoding and decoding of data.

struct policy
{
  uint32_t calcLength(time_type_data_t& v);
  uint32_t encode(ostream& strm, time_type_data_t& v, const uint32_t len);
  uint32_t decode(istream& strm, time_type_data_t& v, const uint32_t len);
  size_t   sizeof();
};

integral.hpp

These structs are not shown in the doxygen generated documentation. For more detail, please see the source code.

namespace boost {
  namespace asn1 {
    struct time_type_data_t;
    struct policy_utc;
    struct policy_generalized;

    template<primitives_t P, typename PolicyT> class time_date_t;

    typedef time_date_t< _utctime, policy_utc > utctime_t;  // Time type for the UTC TIME primitive. 
    typedef time_date_t< _generalizedtime, policy_generalized > generalizedtime_t;  // Time type for the GENERALIZED TIME primitive. 
    uint32_t padded_write(ostream &, const string &);
  }
}namespace gregorian {
}namespace posix_time {
}
Copyright © 2007 Andreas Haberstroh

PrevUpHomeNext