Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 24, 2011, 1:22:11 AM (13 years ago)
Author:
landauf
Message:

added function to register new output contexts.
OutputManager owns helper functions to return names of output levels and contexts.
OutputStream now also seems to compile and link with msvc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/output/src/libraries/util/output/OutputDefinitions.h

    r8765 r8771  
    3131
    3232#include "util/UtilPrereqs.h"
     33#include <string>
    3334
    3435namespace orxonox
     
    5859    typedef uint64_t OutputContext;
    5960
     61    extern _UtilExport OutputContext registerContext(const std::string& name);
     62
    6063    namespace context
    6164    {
    6265        static const OutputContext all       = 0xFFFFFFFFFFFFFFFF;
    6366        static const OutputContext none      = 0x0000000000000000;
    64         static const OutputContext undefined = 0x0000000000000001;
     67        static const OutputContext undefined = registerContext("undefined");
    6568
    66         static const OutputContext test1     = 0x0000000000000002;
    67         static const OutputContext test2     = 0x0000000000000004;
     69        static const OutputContext test1     = registerContext("test1");
     70        static const OutputContext test2     = registerContext("test2");
    6871    }
    6972}
Note: See TracChangeset for help on using the changeset viewer.