Logo Search packages:      
Sourcecode: barry version File versions  Download package

Barry Namespace Reference


Detailed Description

Project namespace, containing all related functions and classes. This is the only namespace applications should be concerned with, for now.


Classes

class  BadData
class  BadPassword
class  BadSize
class  Builder
class  Calendar
class  CommandTable
struct  CommandTableCommand
class  Contact
struct  ContactGroupLink
class  ContactLdif
class  Controller
class  Data
class  DatabaseDatabase
struct  DatabaseItem
class  DataHandle
class  DataQueue
struct  Date
class  DBPacket
class  Diff
struct  EmailAddress
class  ErrnoError
class  Error
struct  FieldLink
class  Folder
class  LogLock
class  Memo
class  Message
class  Modem
class  Packet
class  Parser
class  PINMessage
struct  PostalAddress
class  PppFilter
class  Probe
struct  ProbeResult
class  RecordBuilder
class  RecordFetch
class  RecordParser
class  RecordStateTable
struct  RecordStateTableState
class  SavedMessage
class  scoped_lock
class  ServiceBook
class  ServiceBookConfig
struct  SHA_CTX
class  Socket
class  SocketRoutingQueue
class  SocketZero
class  Task
struct  TimeZone
class  Timezone
struct  UnknownData
struct  UnknownField
class  ZeroPacket

Typedefs

typedef std::vector< std::string > CategoryList
typedef long min1900_t
typedef std::auto_ptr< SocketSocketHandle

Functions

void BuildField (Data &data, size_t &size, uint8_t type, const Barry::Protocol::GroupLink &link)
void BuildField (Data &data, size_t &size, const Barry::UnknownField &field)
void BuildField (Data &data, size_t &size, uint8_t type, const void *buf, size_t bufsize)
void BuildField (Data &data, size_t &size, uint8_t type, const std::string &str)
void BuildField (Data &data, size_t &size, uint8_t type, uint16_t value)
void BuildField (Data &data, size_t &size, uint8_t type, char c)
void BuildField1900 (Data &data, size_t &size, uint8_t type, time_t t)
template<class SizeT>
SizeT ConvertHtoB (SizeT s)
template<>
uint16_t ConvertHtoB< uint16_t > (uint16_t s)
template<>
uint32_t ConvertHtoB< uint32_t > (uint32_t s)
template<>
uint64_t ConvertHtoB< uint64_t > (uint64_t s)
template<>
uint8_t ConvertHtoB< uint8_t > (uint8_t s)
time_t DayToDate (unsigned short Day)
std::ostream * GetLogStream ()
unsigned int GetSize (const unsigned char *packet)
const TimeZone * GetTimeZone (unsigned short Code)
unsigned short GetTimeZoneCode (signed short HourOffset, signed short MinOffset)
const TimeZone * GetTimeZoneTable ()
void Init (bool data_dump_mode=false, std::ostream *logStream=&std::cout)
 See also the LogLock class.
bool Intro (int IntroIndex, const EndpointPair &ep, Device &dev, Data &response)
static bool IsEndpointStart (const std::string &line, int &endpoint)
bool IsHexData (const std::string &s)
BXEXPORT bool LoadDataArray (const std::string &filename, std::vector< Data > &array)
bool LoadDataArray (const string &filename, std::vector< Data > &array)
bool LogVerbose ()
time_t Message2Time (uint16_t r_date, uint16_t r_time)
time_t min2time (min1900_t m)
BXEXPORT std::ostream & operator<< (std::ostream &os, const DatabaseDatabase &dbdb)
BXEXPORT std::ostream & operator<< (std::ostream &os, const RecordStateTable &rst)
BXEXPORT std::ostream & operator<< (std::ostream &os, const CommandTable &command)
std::ostream & operator<< (std::ostream &os, const Date &date)
std::ostream & operator<< (std::ostream &os, const PostalAddress &post)
std::ostream & operator<< (std::ostream &os, const EmailAddress &msga)
std::ostream & operator<< (std::ostream &os, const std::vector< UnknownField > &unknowns)
BXEXPORT std::ostream & operator<< (std::ostream &os, const Timezone &msg)
BXEXPORT std::ostream & operator<< (std::ostream &os, const Task &msg)
BXEXPORT std::ostream & operator<< (std::ostream &os, const ServiceBook &msg)
BXEXPORT std::ostream & operator<< (std::ostream &os, const ServiceBookConfig &msg)
BXEXPORT std::ostream & operator<< (std::ostream &os, const SavedMessage &msg)
BXEXPORT std::ostream & operator<< (std::ostream &os, const PINMessage &msg)
BXEXPORT std::ostream & operator<< (std::ostream &os, const Message &msg)
BXEXPORT std::ostream & operator<< (std::ostream &os, const Memo &msg)
BXEXPORT std::ostream & operator<< (std::ostream &os, const Folder &msg)
BXEXPORT std::ostream & operator<< (std::ostream &os, const Contact &contact)
BXEXPORT std::ostream & operator<< (std::ostream &os, const Calendar &msg)
std::ostream & operator<< (std::ostream &os, const ProbeResult &pr)
BXEXPORT std::ostream & operator<< (std::ostream &os, const ContactLdif &ldif)
BXEXPORT std::ostream & operator<< (std::ostream &os, const Diff &diff)
BXEXPORT std::ostream & operator<< (std::ostream &os, const Data &data)
ostream & operator<< (ostream &os, const Diff &diff)
ostream & operator<< (ostream &os, const Data &data)
BXEXPORT std::istream & operator>> (std::istream &is, Data &data)
istream & operator>> (istream &is, Data &data)
template<class RecordT>
const unsigned char * ParseCommonFields (RecordT &rec, const void *begin, const void *end)
std::string ParseFieldString (const void *data, uint16_t maxlen)
std::string ParseFieldString (const Barry::Protocol::CommonField *field)
bool ReadDataArray (std::istream &is, std::vector< Data > &array)
void SHA1 (const void *dataIn, int len, unsigned char *hashout)
void SHA1_Final (unsigned char hashout[20], SHA_CTX *ctx)
void SHA1_Init (SHA_CTX *ctx)
void SHA1_Update (SHA_CTX *ctx, const void *_dataIn, int len)
static void shaHashBlock (SHA_CTX *ctx)
min1900_t time2min (time_t t)
const char * Version (int &major, int &minor)

Variables

bool __data_dump_mode__
FieldLink< Calendar > CalendarFieldLinks []
FieldLink< Contact > ContactFieldLinks []
FieldLink< Folder > FolderFieldLinks []
unsigned char Intro_Receives [][32]
unsigned char Intro_Sends [][32]
std::ostream * LogStream = &std::cout
pthread_mutex_t LogStreamMutex
FieldLink< Memo > MemoFieldLinks []
FieldLink< Message > MessageFieldLinks []
FieldLink< PINMessage > PINMessageFieldLinks []
FieldLink< SavedMessage > SavedMessageFieldLinks []
FieldLink< ServiceBookConfig > ServiceBookConfigFieldLinks []
FieldLink< ServiceBook > ServiceBookFieldLinks []
FieldLink< Task > TaskFieldLinks []
FieldLink< Timezone > TimezoneFieldLinks []
TimeZone Zones []


Generated by  Doxygen 1.6.0   Back to index